|
YATS/Forge Documentation
|
Public Member Functions | |
| InventoryLargeChest (String par1Str, IInventory par2IInventory, IInventory par3IInventory) | |
| int | getSizeInventory () |
| boolean | isPartOfLargeChest (IInventory par1IInventory) |
| String | getInvName () |
| boolean | isInvNameLocalized () |
| ItemStack | getStackInSlot (int par1) |
| ItemStack | decrStackSize (int par1, int par2) |
| ItemStack | getStackInSlotOnClosing (int par1) |
| void | setInventorySlotContents (int par1, ItemStack par2ItemStack) |
| int | getInventoryStackLimit () |
| void | onInventoryChanged () |
| boolean | isUseableByPlayer (EntityPlayer par1EntityPlayer) |
| void | openChest () |
| void | closeChest () |
| boolean | isStackValidForSlot (int par1, ItemStack par2ItemStack) |
| net.minecraft.inventory.InventoryLargeChest.InventoryLargeChest | ( | String | par1Str, |
| IInventory | par2IInventory, | ||
| IInventory | par3IInventory | ||
| ) |
| void net.minecraft.inventory.InventoryLargeChest.closeChest | ( | ) |
Implements net.minecraft.inventory.IInventory.
| ItemStack net.minecraft.inventory.InventoryLargeChest.decrStackSize | ( | int | par1, |
| int | par2 | ||
| ) |
Removes from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a new stack.
Implements net.minecraft.inventory.IInventory.
| int net.minecraft.inventory.InventoryLargeChest.getInventoryStackLimit | ( | ) |
Returns the maximum stack size for a inventory slot. Seems to always be 64, possibly will be extended. Isn't this more of a set than a get?
Implements net.minecraft.inventory.IInventory.
| String net.minecraft.inventory.InventoryLargeChest.getInvName | ( | ) |
Returns the name of the inventory.
Implements net.minecraft.inventory.IInventory.
| int net.minecraft.inventory.InventoryLargeChest.getSizeInventory | ( | ) |
Returns the number of slots in the inventory.
Implements net.minecraft.inventory.IInventory.
| ItemStack net.minecraft.inventory.InventoryLargeChest.getStackInSlot | ( | int | par1) |
Returns the stack in slot i
Implements net.minecraft.inventory.IInventory.
| ItemStack net.minecraft.inventory.InventoryLargeChest.getStackInSlotOnClosing | ( | int | par1) |
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.
Implements net.minecraft.inventory.IInventory.
| boolean net.minecraft.inventory.InventoryLargeChest.isInvNameLocalized | ( | ) |
If this returns false, the inventory name will be used as an unlocalized name, and translated into the player's language. Otherwise it will be used directly.
Implements net.minecraft.inventory.IInventory.
| boolean net.minecraft.inventory.InventoryLargeChest.isPartOfLargeChest | ( | IInventory | par1IInventory) |
Return whether the given inventory is part of this large chest.
| boolean net.minecraft.inventory.InventoryLargeChest.isStackValidForSlot | ( | int | par1, |
| ItemStack | par2ItemStack | ||
| ) |
Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.
Implements net.minecraft.inventory.IInventory.
| boolean net.minecraft.inventory.InventoryLargeChest.isUseableByPlayer | ( | EntityPlayer | par1EntityPlayer) |
Do not make give this method the name canInteractWith because it clashes with Container
Implements net.minecraft.inventory.IInventory.
| void net.minecraft.inventory.InventoryLargeChest.onInventoryChanged | ( | ) |
Called when an the contents of an Inventory change, usually
Implements net.minecraft.inventory.IInventory.
| void net.minecraft.inventory.InventoryLargeChest.openChest | ( | ) |
Implements net.minecraft.inventory.IInventory.
| void net.minecraft.inventory.InventoryLargeChest.setInventorySlotContents | ( | int | par1, |
| ItemStack | par2ItemStack | ||
| ) |
Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).
Implements net.minecraft.inventory.IInventory.