public interface IInventory extends IWorldNameable
Modifier and Type | Method and Description |
---|---|
void |
clear() |
void |
closeInventory(EntityPlayer player) |
ItemStack |
decrStackSize(int index,
int count) |
int |
getField(int id) |
int |
getFieldCount() |
int |
getInventoryStackLimit() |
int |
getSizeInventory() |
ItemStack |
getStackInSlot(int index) |
ItemStack |
getStackInSlotOnClosing(int index) |
boolean |
isItemValidForSlot(int index,
ItemStack stack) |
boolean |
isUseableByPlayer(EntityPlayer player) |
void |
markDirty() |
void |
openInventory(EntityPlayer player) |
void |
setField(int id,
int value) |
void |
setInventorySlotContents(int index,
ItemStack stack) |
getDisplayName, getName, hasCustomName
int getSizeInventory()
ItemStack getStackInSlot(int index)
ItemStack decrStackSize(int index, int count)
ItemStack getStackInSlotOnClosing(int index)
void setInventorySlotContents(int index, ItemStack stack)
int getInventoryStackLimit()
void markDirty()
boolean isUseableByPlayer(EntityPlayer player)
void openInventory(EntityPlayer player)
void closeInventory(EntityPlayer player)
boolean isItemValidForSlot(int index, ItemStack stack)
int getField(int id)
void setField(int id, int value)
int getFieldCount()
void clear()