public interface IInventory
Modifier and Type | Method and Description |
---|---|
void |
closeChest() |
ItemStack |
decrStackSize(int i,
int j)
Removes from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a
new stack.
|
boolean |
func_94041_b(int i,
ItemStack itemstack) |
boolean |
func_94042_c() |
int |
getInventoryStackLimit()
Returns the maximum stack size for a inventory slot.
|
String |
getInvName()
Returns the name of the inventory.
|
int |
getSizeInventory()
Returns the number of slots in the inventory.
|
ItemStack |
getStackInSlot(int i)
Returns the stack in slot i
|
ItemStack |
getStackInSlotOnClosing(int i)
When some containers are closed they call this on each slot, then drop whatever it returns as an EntityItem -
like when you close a workbench GUI.
|
boolean |
isUseableByPlayer(EntityPlayer entityplayer)
Do not make give this method the name canInteractWith because it clashes with Container
|
void |
onInventoryChanged()
Called when an the contents of an Inventory change, usually
|
void |
openChest() |
void |
setInventorySlotContents(int i,
ItemStack itemstack)
Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).
|
int getSizeInventory()
ItemStack getStackInSlot(int i)
ItemStack decrStackSize(int i, int j)
ItemStack getStackInSlotOnClosing(int i)
void setInventorySlotContents(int i, ItemStack itemstack)
String getInvName()
boolean func_94042_c()
int getInventoryStackLimit()
void onInventoryChanged()
boolean isUseableByPlayer(EntityPlayer entityplayer)
void openChest()
void closeChest()
boolean func_94041_b(int i, ItemStack itemstack)