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 IInventory
public void setInventorySlotContents(int i, ItemStack itemstack)
setInventorySlotContents
in interface IInventory
public float getStrVsBlock(Block block)
public NBTTagList writeToNBT(NBTTagList nbttaglist)
public void readFromNBT(NBTTagList nbttaglist)
public int getSizeInventory()
getSizeInventory
in interface IInventory
public ItemStack getStackInSlot(int i)
getStackInSlot
in interface IInventory
public java.lang.String getInvName()
getInvName
in interface IInventory
public int getInventoryStackLimit()
getInventoryStackLimit
in interface IInventory
public 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 IInventory
public void setItemStack(ItemStack itemstack)
public ItemStack getItemStack()
public boolean canInteractWith(EntityPlayer entityplayer)
canInteractWith
in interface IInventory
public boolean func_28018_c(ItemStack itemstack)