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 |
isItemValidForSlot(int index,
ItemStack stack) |
boolean |
isUseableByPlayer(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()
@Nullable ItemStack getStackInSlot(int index)
@Nullable ItemStack decrStackSize(int index, int count)
@Nullable ItemStack removeStackFromSlot(int index)
void setInventorySlotContents(int index, @Nullable 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()