Package mekanism.common.network.PacketConfiguratorState

Examples of mekanism.common.network.PacketConfiguratorState.ConfiguratorStateMessage


          if(MekanismKeyHandler.modeSwitchKey.getIsKeyPressed())
          {
            if(!lastTickUpdate)
            {
              item.setState(stack, (byte)(item.getState(stack) < 3 ? item.getState(stack)+1 : 0));
              Mekanism.packetHandler.sendToServer(new ConfiguratorStateMessage(item.getState(stack)));
              mc.thePlayer.addChatMessage(new ChatComponentText(EnumColor.DARK_BLUE + "[Mekanism] " + EnumColor.GREY + MekanismUtils.localize("tooltip.configureState") + ": " + item.getColor(item.getState(stack)) + item.getStateDisplay(item.getState(stack))));
              lastTickUpdate = true;
            }
          }
          else {
View Full Code Here

TOP

Related Classes of mekanism.common.network.PacketConfiguratorState.ConfiguratorStateMessage

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.