Class InventoryPlayer

  • All Implemented Interfaces:
    IInventory

    public class InventoryPlayer
    extends java.lang.Object
    implements IInventory
    • Field Detail

      • mainInventory

        public ItemStack[] mainInventory
      • armorInventory

        public ItemStack[] armorInventory
      • currentItem

        public int currentItem
      • player

        public Player player
      • inventoryChanged

        public boolean inventoryChanged
    • Constructor Detail

      • InventoryPlayer

        public InventoryPlayer​(Player var1)
    • Method Detail

      • getCurrentItem

        public ItemStack getCurrentItem()
      • func_25054_e

        public static int func_25054_e()
      • setCurrentItem

        @Client
        public void setCurrentItem​(int var1,
                                   int var2,
                                   boolean var3,
                                   boolean var4)
      • changeCurrentItem

        @Client
        public void changeCurrentItem​(int var1)
      • func_52006_a

        @Client
        public void func_52006_a​(Item var1,
                                 int var2)
      • decrementAnimations

        public void decrementAnimations()
      • consumeInventoryItem

        public boolean consumeInventoryItem​(int var1)
      • hasItem

        public boolean hasItem​(int var1)
      • addItemStackToInventory

        public boolean addItemStackToInventory​(ItemStack var1)
      • getStrVsBlock

        public float getStrVsBlock​(Block var1)
      • readFromNBT

        public void readFromNBT​(NBTTagList var1)
      • getInvName

        public java.lang.String getInvName()
        Specified by:
        getInvName in interface IInventory
      • getDamageVsEntity

        public int getDamageVsEntity​(Entity var1)
      • canHarvestBlock

        public boolean canHarvestBlock​(Block var1)
      • getTotalArmorValue

        public int getTotalArmorValue()
      • damageArmor

        public void damageArmor​(int var1)
      • dropAllItems

        public void dropAllItems()
      • setItemStack

        public void setItemStack​(ItemStack var1)
      • getItemStack

        public ItemStack getItemStack()
      • hasItemStack

        public boolean hasItemStack​(ItemStack var1)