Package mekanism.common.network.PacketLogisticalSorterGui

Examples of mekanism.common.network.PacketLogisticalSorterGui.LogisticalSorterGuiMessage


          }
          else {
            Mekanism.packetHandler.sendToServer(new EditFilterMessage(Coord4D.get(tileEntity), false, origFilter, filter));
          }

          Mekanism.packetHandler.sendToServer(new LogisticalSorterGuiMessage(SorterGuiPacket.SERVER, Coord4D.get(tileEntity), 0, 0, 0));
        }
        else if(min > max)
        {
          status = EnumColor.DARK_RED + "Max<min";
          ticker = 20;
        }
        else if(max > 64 || min > 64)
        {
          status = EnumColor.DARK_RED + "Max>64";
          ticker = 20;
        }
      }
      else if(filter.itemType == null)
      {
        status = EnumColor.DARK_RED + "No item";
        ticker = 20;
      }
      else if(minField.getText().isEmpty() || maxField.getText().isEmpty())
      {
        status = EnumColor.DARK_RED + "Max/min";
        ticker = 20;
      }
    }
    else if(guibutton.id == 1)
    {
      Mekanism.packetHandler.sendToServer(new EditFilterMessage(Coord4D.get(tileEntity), true, origFilter, null));
      Mekanism.packetHandler.sendToServer(new LogisticalSorterGuiMessage(SorterGuiPacket.SERVER, Coord4D.get(tileEntity), 0, 0, 0));
    }
  }
View Full Code Here


    if(button == 0)
    {
      if(xAxis >= 5 && xAxis <= 16 && yAxis >= 5 && yAxis <= 16)
      {
                SoundHandler.playSound("gui.button.press");
        Mekanism.packetHandler.sendToServer(new LogisticalSorterGuiMessage(SorterGuiPacket.SERVER, Coord4D.get(tileEntity), isNew ? 4 : 0, 0, 0));
      }

      if(xAxis >= 12 && xAxis <= 28 && yAxis >= 19 && yAxis <= 35)
      {
        ItemStack stack = mc.thePlayer.inventory.getItemStack();
View Full Code Here

      playerMP.getNextWindowId();
      int window = playerMP.currentWindowId;
 
      if(t == SorterGuiPacket.SERVER)
      {
        Mekanism.packetHandler.sendTo(new LogisticalSorterGuiMessage(SorterGuiPacket.CLIENT, obj, guiType, window, 0), playerMP);
      }
      else if(t == SorterGuiPacket.SERVER_INDEX)
      {
        Mekanism.packetHandler.sendTo(new LogisticalSorterGuiMessage(SorterGuiPacket.CLIENT_INDEX, obj, guiType, window, i), playerMP);
      }
 
      playerMP.openContainer = container;
      playerMP.openContainer.windowId = window;
      playerMP.openContainer.addCraftingToCrafters(playerMP);
View Full Code Here

TOP

Related Classes of mekanism.common.network.PacketLogisticalSorterGui.LogisticalSorterGuiMessage

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.