Package net.minecraft.entity.player

Examples of net.minecraft.entity.player.EntityPlayer.swingItem()


  public IMessage onMessage(PacketXpTransferEffects message, MessageContext ctx) {
    EntityPlayer player = EnderIO.proxy.getClientPlayer();
    if(player != null) {
      int particleCount = 1;
      if(message.swing) {
        player.swingItem();
        particleCount = 5;
      }     

      for (int i = 0; i < particleCount; i++) {
       
View Full Code Here


        EntityPlayer thePlayer = event.entityPlayer;
        Entity entity = event.target;

        ItemStack stack = thePlayer.getCurrentEquippedItem();
        if (stack != null && stack.getItem() instanceof IToolCrowbar)
            thePlayer.swingItem();

        if (Game.isNotHost(thePlayer.worldObj))
            return;
        if (!ModuleManager.isModuleLoaded(Module.TRAIN))
            return;
View Full Code Here

        Entity entity = event.target;

        ItemStack stack = thePlayer.getCurrentEquippedItem();
        if (stack != null && stack.getItem() instanceof ItemElectricMeter)
            thePlayer.swingItem();

        if (Game.isNotHost(thePlayer.worldObj))
            return;

        if (stack != null && stack.getItem() instanceof ItemElectricMeter)
View Full Code Here

        Entity entity = event.target;

        ItemStack stack = thePlayer.getCurrentEquippedItem();
        if (stack != null && stack.getItem() instanceof ItemMagnifyingGlass)
            thePlayer.swingItem();

        if (Game.isNotHost(thePlayer.worldObj))
            return;

        if (stack != null && stack.getItem() instanceof ItemMagnifyingGlass)
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.