Package mekanism.common.network.PacketPortableTankState

Examples of mekanism.common.network.PacketPortableTankState.PortableTankStateMessage


            if(MekanismKeyHandler.modeSwitchKey.getIsKeyPressed())
            {
              if(!lastTickUpdate)
              {
                item.setBucketMode(stack, !item.getBucketMode(stack));
                Mekanism.packetHandler.sendToServer(new PortableTankStateMessage(item.getBucketMode(stack)));
                mc.thePlayer.addChatMessage(new ChatComponentText(EnumColor.DARK_BLUE + "[Mekanism] " + EnumColor.GREY + MekanismUtils.localize("tooltip.portableTank.bucketMode") + ": " + (item.getBucketMode(stack) ? (EnumColor.DARK_GREEN + "ON") : (EnumColor.DARK_RED + "OFF"))));
                lastTickUpdate = true;
              }
            }
            else {
View Full Code Here

TOP

Related Classes of mekanism.common.network.PacketPortableTankState.PortableTankStateMessage

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.