|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IInventory
Method Summary | |
---|---|
void |
closeChest()
|
ItemStack |
decrStackSize(int var1,
int var2)
Removes from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a new stack. |
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 var1)
Returns the stack in slot i |
ItemStack |
getStackInSlotOnClosing(int var1)
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 var1)
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 var1,
ItemStack var2)
Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections). |
Method Detail |
---|
int getSizeInventory()
ItemStack getStackInSlot(int var1)
ItemStack decrStackSize(int var1, int var2)
ItemStack getStackInSlotOnClosing(int var1)
void setInventorySlotContents(int var1, ItemStack var2)
String getInvName()
int getInventoryStackLimit()
void onInventoryChanged()
boolean isUseableByPlayer(EntityPlayer var1)
void openChest()
void closeChest()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |