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_) |
Modifier and Type | Method and Description |
---|---|
boolean |
addItemStackToInventory(ItemStack p_70441_1_) |
ItemStack |
armorItemInSlot(int p_70440_1_) |
void |
changeCurrentItem(int p_70453_1_) |
int |
clearInventory(Item p_146027_1_,
int p_146027_2_) |
void |
closeInventory() |
boolean |
consumeInventoryItem(Item p_146026_1_) |
void |
copyInventory(InventoryPlayer p_70455_1_) |
void |
damageArmor(float p_70449_1_) |
void |
decrementAnimations() |
ItemStack |
decrStackSize(int p_70298_1_,
int p_70298_2_) |
void |
dropAllItems() |
float |
func_146023_a(Block p_146023_1_) |
boolean |
func_146025_b(Block p_146025_1_) |
void |
func_146030_a(Item p_146030_1_,
int p_146030_2_,
boolean p_146030_3_,
boolean p_146030_4_) |
void |
func_70439_a(Item p_70439_1_,
int p_70439_2_) |
ItemStack |
getCurrentItem() |
int |
getFirstEmptyStack() |
static int |
getHotbarSize() |
java.lang.String |
getInventoryName() |
int |
getInventoryStackLimit() |
ItemStack |
getItemStack() |
int |
getSizeInventory() |
ItemStack |
getStackInSlot(int p_70301_1_) |
ItemStack |
getStackInSlotOnClosing(int p_70304_1_) |
int |
getTotalArmorValue() |
boolean |
hasCustomInventoryName() |
boolean |
hasItem(Item p_146028_1_) |
boolean |
hasItemStack(ItemStack p_70431_1_) |
boolean |
isItemValidForSlot(int p_94041_1_,
ItemStack p_94041_2_) |
boolean |
isUseableByPlayer(EntityPlayer p_70300_1_) |
void |
markDirty() |
void |
openInventory() |
void |
readFromNBT(NBTTagList p_70443_1_) |
void |
setInventorySlotContents(int p_70299_1_,
ItemStack p_70299_2_) |
void |
setItemStack(ItemStack p_70437_1_) |
NBTTagList |
writeToNBT(NBTTagList p_70442_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 IInventory
public ItemStack getStackInSlotOnClosing(int p_70304_1_)
getStackInSlotOnClosing
in interface IInventory
public void setInventorySlotContents(int p_70299_1_, ItemStack p_70299_2_)
setInventorySlotContents
in interface IInventory
public 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 IInventory
public ItemStack getStackInSlot(int p_70301_1_)
getStackInSlot
in interface IInventory
public java.lang.String getInventoryName()
getInventoryName
in interface IInventory
public boolean hasCustomInventoryName()
hasCustomInventoryName
in interface IInventory
public int getInventoryStackLimit()
getInventoryStackLimit
in interface IInventory
public 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 IInventory
public void setItemStack(ItemStack p_70437_1_)
public ItemStack getItemStack()
public boolean isUseableByPlayer(EntityPlayer p_70300_1_)
isUseableByPlayer
in interface IInventory
public boolean hasItemStack(ItemStack p_70431_1_)
public void openInventory()
openInventory
in interface IInventory
public void closeInventory()
closeInventory
in interface IInventory
public boolean isItemValidForSlot(int p_94041_1_, ItemStack p_94041_2_)
isItemValidForSlot
in interface IInventory
public void copyInventory(InventoryPlayer p_70455_1_)