Package crazypants.enderio.teleport.packet

Examples of crazypants.enderio.teleport.packet.PacketDrainStaff


    TileEnderIO eio = (TileEnderIO) te;
    if(eio.canBlockBeAccessed(player)) {
      int requiredPower = equipped == null ? 0 : instance.getRequiredPower(player, TravelSource.STAFF, target);
      if(requiredPower <= 0 || requiredPower <= getEnergyInTravelItem(equipped)) {
        if(requiredPower > 0) {
          PacketDrainStaff p = new PacketDrainStaff(requiredPower);
          PacketHandler.INSTANCE.sendToServer(p);
        }
        player.openGui(EnderIO.instance, GuiHandler.GUI_ID_ENDERFACE, world, target.x,
            TravelController.instance.selectedCoord.y, TravelController.instance.selectedCoord.z);
      }
View Full Code Here

TOP

Related Classes of crazypants.enderio.teleport.packet.PacketDrainStaff

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.