Package mekanism.common.network.PacketStatusUpdate

Examples of mekanism.common.network.PacketStatusUpdate.StatusUpdateMessage


          if(item.getEnergy(itemstack) < energyNeeded)
          {
            if(item.getStatus(itemstack) != 2)
            {
              item.setStatus(itemstack, 2);
              Mekanism.packetHandler.sendTo(new StatusUpdateMessage(2), (EntityPlayerMP)player);
            }
          }
          else {
            if(item.getStatus(itemstack) != 1)
            {
              item.setStatus(itemstack, 1);
              Mekanism.packetHandler.sendTo(new StatusUpdateMessage(1), (EntityPlayerMP)player);
            }
          }
        }
        else if(Mekanism.teleporters.get(teleCode).size() > 2)
        {
          if(item.getStatus(itemstack) != 3)
          {
            item.setStatus(itemstack, 3);
            Mekanism.packetHandler.sendTo(new StatusUpdateMessage(3), (EntityPlayerMP)player);
          }
        }
        else {
          if(item.getStatus(itemstack) != 4)
          {
            item.setStatus(itemstack, 4);
            Mekanism.packetHandler.sendTo(new StatusUpdateMessage(4), (EntityPlayerMP)player);
          }
        }
      }
      else {
        if(item.getStatus(itemstack) != 4)
        {
          item.setStatus(itemstack, 4);
          Mekanism.packetHandler.sendTo(new StatusUpdateMessage(4), (EntityPlayerMP)player);
        }
      }
    }

    if(player.getEquipmentInSlot(1) != null && player.getEquipmentInSlot(1).getItem() instanceof ItemFreeRunners)
View Full Code Here

TOP

Related Classes of mekanism.common.network.PacketStatusUpdate.StatusUpdateMessage

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.