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) |
boolean |
isEmpty() |
boolean |
isItemValidForSlot(int index,
ItemStack stack) |
boolean |
isUsableByPlayer(EntityPlayer player) |
void |
markDirty() |
void |
openInventory(EntityPlayer player) |
ItemStack |
removeStackFromSlot(int index) |
void |
setField(int id,
int value) |
void |
setInventorySlotContents(int index,
ItemStack stack) |
getDisplayName, getName, hasCustomName
int getSizeInventory()
boolean isEmpty()
ItemStack getStackInSlot(int index)
ItemStack decrStackSize(int index, int count)
ItemStack removeStackFromSlot(int index)
void setInventorySlotContents(int index, ItemStack stack)
int getInventoryStackLimit()
void markDirty()
boolean isUsableByPlayer(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()