Package net.minecraft.item

Examples of net.minecraft.item.EnumAction


      ItemStack itemstack = player.inventory.getCurrentItem();
      heldItemRight = itemstack != null ? 1 : 0;

      if (itemstack != null && player.getItemInUseCount() > 0) {
        EnumAction enumaction = itemstack.getItemUseAction();

        if (enumaction == EnumAction.block)
          heldItemRight = 3;
        else if (enumaction == EnumAction.bow)
          aimedBow = true;
View Full Code Here


        heldItemRight = itemstack != null ? 1 : 0;

        aimedBow = false;
        if (itemstack != null && entity instanceof EntityPlayer && ((EntityPlayer)entity).getItemInUseCount() > 0)
        {
          EnumAction enumaction = itemstack.getItemUseAction();
            if (enumaction == EnumAction.block)
            {
                heldItemRight = 3;
            }
            else if (enumaction == EnumAction.bow)
View Full Code Here

      // if (par1AbstractClientPlayer.fishEntity != null)
      // {
      // itemstack1 = new ItemStack(Items.stick);
      // }

      EnumAction enumaction = EnumAction.none;

      // if (par1AbstractClientPlayer.getItemInUseCount() > 0)
      // {
      // enumaction = itemstack1.getItemUseAction();
      // }
View Full Code Here

TOP

Related Classes of net.minecraft.item.EnumAction

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.