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 entityplayer) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
addItemStackToInventory(ItemStack itemstack) |
ItemStack |
armorItemInSlot(int i) |
boolean |
canHarvestBlock(Block block) |
boolean |
canInteractWith(EntityPlayer entityplayer) |
void |
changeCurrentItem(int i) |
boolean |
consumeInventoryItem(int i) |
void |
damageArmor(int i) |
void |
decrementAnimations() |
ItemStack |
decrStackSize(int i,
int j) |
void |
dropAllItems() |
boolean |
func_28018_c(ItemStack itemstack) |
ItemStack |
getCurrentItem() |
int |
getDamageVsEntity(Entity entity) |
int |
getInventoryStackLimit() |
java.lang.String |
getInvName() |
ItemStack |
getItemStack() |
int |
getSizeInventory() |
ItemStack |
getStackInSlot(int i) |
float |
getStrVsBlock(Block block) |
int |
getTotalArmorValue() |
void |
onInventoryChanged() |
void |
readFromNBT(NBTTagList nbttaglist) |
void |
setCurrentItem(int i,
boolean flag) |
void |
setInventorySlotContents(int i,
ItemStack itemstack) |
void |
setItemStack(ItemStack itemstack) |
NBTTagList |
writeToNBT(NBTTagList nbttaglist) |
public ItemStack[] mainInventory
public ItemStack[] armorInventory
public int currentItem
public EntityPlayer player
public boolean inventoryChanged
public InventoryPlayer(EntityPlayer entityplayer)
public ItemStack getCurrentItem()
public void setCurrentItem(int i,
boolean flag)
public void changeCurrentItem(int i)
public void decrementAnimations()
public boolean consumeInventoryItem(int i)
public boolean addItemStackToInventory(ItemStack itemstack)
public ItemStack decrStackSize(int i, int j)
decrStackSize in interface IInventorypublic void setInventorySlotContents(int i,
ItemStack itemstack)
setInventorySlotContents in interface IInventorypublic float getStrVsBlock(Block block)
public NBTTagList writeToNBT(NBTTagList nbttaglist)
public void readFromNBT(NBTTagList nbttaglist)
public int getSizeInventory()
getSizeInventory in interface IInventorypublic ItemStack getStackInSlot(int i)
getStackInSlot in interface IInventorypublic java.lang.String getInvName()
getInvName in interface IInventorypublic int getInventoryStackLimit()
getInventoryStackLimit in interface IInventorypublic int getDamageVsEntity(Entity entity)
public boolean canHarvestBlock(Block block)
public ItemStack armorItemInSlot(int i)
public int getTotalArmorValue()
public void damageArmor(int i)
public void dropAllItems()
public void onInventoryChanged()
onInventoryChanged in interface IInventorypublic void setItemStack(ItemStack itemstack)
public ItemStack getItemStack()
public boolean canInteractWith(EntityPlayer entityplayer)
canInteractWith in interface IInventorypublic boolean func_28018_c(ItemStack itemstack)