public class InventoryPlayer extends java.lang.Object implements IInventory
| Modifier and Type | Field and Description |
|---|---|
ItemStack[] |
armorInventory |
int |
currentItem |
boolean |
inventoryChanged |
ItemStack[] |
mainInventory |
EntityPlayer |
player |
| Constructor and Description |
|---|
InventoryPlayer(EntityPlayer p_i1750_1_) |
public ItemStack[] mainInventory
public ItemStack[] armorInventory
public int currentItem
public EntityPlayer player
public boolean inventoryChanged
public InventoryPlayer(EntityPlayer p_i1750_1_)
public ItemStack getCurrentItem()
public static int getHotbarSize()
public int getFirstEmptyStack()
public void func_146030_a(Item p_146030_1_, int p_146030_2_, boolean p_146030_3_, boolean p_146030_4_)
public int clearInventory(Item p_146027_1_, int p_146027_2_)
public void changeCurrentItem(int p_70453_1_)
public void func_70439_a(Item p_70439_1_, int p_70439_2_)
public void decrementAnimations()
public boolean consumeInventoryItem(Item p_146026_1_)
public boolean hasItem(Item p_146028_1_)
public boolean addItemStackToInventory(ItemStack p_70441_1_)
public ItemStack decrStackSize(int p_70298_1_, int p_70298_2_)
decrStackSize in interface IInventorypublic ItemStack getStackInSlotOnClosing(int p_70304_1_)
getStackInSlotOnClosing in interface IInventorypublic void setInventorySlotContents(int p_70299_1_,
ItemStack p_70299_2_)
setInventorySlotContents in interface IInventorypublic float func_146023_a(Block p_146023_1_)
public NBTTagList writeToNBT(NBTTagList p_70442_1_)
public void readFromNBT(NBTTagList p_70443_1_)
public int getSizeInventory()
getSizeInventory in interface IInventorypublic ItemStack getStackInSlot(int p_70301_1_)
getStackInSlot in interface IInventorypublic java.lang.String getInventoryName()
getInventoryName in interface IInventorypublic boolean hasCustomInventoryName()
hasCustomInventoryName in interface IInventorypublic int getInventoryStackLimit()
getInventoryStackLimit in interface IInventorypublic boolean func_146025_b(Block p_146025_1_)
public ItemStack armorItemInSlot(int p_70440_1_)
public int getTotalArmorValue()
public void damageArmor(float p_70449_1_)
public void dropAllItems()
public void markDirty()
markDirty in interface IInventorypublic void setItemStack(ItemStack p_70437_1_)
public ItemStack getItemStack()
public boolean isUseableByPlayer(EntityPlayer p_70300_1_)
isUseableByPlayer in interface IInventorypublic boolean hasItemStack(ItemStack p_70431_1_)
public void openInventory()
openInventory in interface IInventorypublic void closeInventory()
closeInventory in interface IInventorypublic boolean isItemValidForSlot(int p_94041_1_,
ItemStack p_94041_2_)
isItemValidForSlot in interface IInventorypublic void copyInventory(InventoryPlayer p_70455_1_)