Package mekanism.common.network.PacketSimpleGui

Examples of mekanism.common.network.PacketSimpleGui.SimpleGuiMessage


    {
      if(xAxis >= 6 && xAxis <= 20 && yAxis >= 6 && yAxis <= 20)
      {
        int guiId = MachineType.get(tile.getBlockType(), tile.getBlockMetadata()).guiId;
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new SimpleGuiMessage(Coord4D.get(tile), guiId));
      }

      if(xAxis >= 156 && xAxis <= 170 && yAxis >= 6 && yAxis <= 20)
      {
                SoundHandler.playSound("gui.button.press");
View Full Code Here


    if(button == 0)
    {
      if(xAxis >= -21 && xAxis <= -3 && yAxis >= 10 && yAxis <= 28)
      {
        Mekanism.packetHandler.sendToServer(new SimpleGuiMessage(Coord4D.get(tileEntity), 9));
                SoundHandler.playSound("gui.button.press");
      }
    }
  }
View Full Code Here

      playerMP.closeContainer();
      playerMP.getNextWindowId();
 
      int window = playerMP.currentWindowId;
 
      Mekanism.packetHandler.sendTo(new SimpleGuiMessage(obj, id), playerMP);
 
      playerMP.openContainer = Mekanism.proxy.getServerGui(id, playerMP, world, obj.xCoord, obj.yCoord, obj.zCoord);
      playerMP.openContainer.windowId = window;
      playerMP.openContainer.addCraftingToCrafters(playerMP);
    }
View Full Code Here

TOP

Related Classes of mekanism.common.network.PacketSimpleGui.SimpleGuiMessage

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.