Examples of swingItem()


Examples of net.minecraft.client.entity.EntityClientPlayerMP.swingItem()

    } else if(equipped.getItem() == EnderIO.itemConduitProbe) {
     
      int newMeta = equipped.getItemDamage() == 0 ? 1 : 0;
      equipped.setItemDamage(newMeta);
      PacketHandler.INSTANCE.sendToServer(new PacketConduitProbeMode());  
      player.swingItem();
     
    }
   
       
  }
View Full Code Here

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

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

        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

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

        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

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

        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

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

         !BetterStorage.globalConfig.getBoolean(GlobalConfig.enableBackpackInteraction))) return;
   
    EntityPlayerMP player = (EntityPlayerMP)event.entity;
    EntityLivingBase target = (EntityLivingBase)event.target;
    if (ItemBackpack.openBackpack(player, target))
      player.swingItem();
   
  }
 
  @SubscribeEvent
  public void onSpecialSpawn(SpecialSpawn event) {
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.