|
YATS/Forge Documentation
|
Public Member Functions | |
| InventoryBasic (String par1Str, boolean par2, int par3) | |
| ItemStack | getStackInSlot (int par1) |
| ItemStack | decrStackSize (int par1, int par2) |
| ItemStack | getStackInSlotOnClosing (int par1) |
| void | setInventorySlotContents (int par1, ItemStack par2ItemStack) |
| int | getSizeInventory () |
| String | getInvName () |
| boolean | isInvNameLocalized () |
| int | getInventoryStackLimit () |
| void | onInventoryChanged () |
| boolean | isUseableByPlayer (EntityPlayer par1EntityPlayer) |
| void | openChest () |
| void | closeChest () |
| boolean | isStackValidForSlot (int par1, ItemStack par2ItemStack) |
| net.minecraft.inventory.InventoryBasic.InventoryBasic | ( | String | par1Str, |
| boolean | par2, | ||
| int | par3 | ||
| ) |
| void net.minecraft.inventory.InventoryBasic.closeChest | ( | ) |
Implements net.minecraft.inventory.IInventory.
| ItemStack net.minecraft.inventory.InventoryBasic.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.InventoryBasic.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.InventoryBasic.getInvName | ( | ) |
Returns the name of the inventory.
Implements net.minecraft.inventory.IInventory.
| int net.minecraft.inventory.InventoryBasic.getSizeInventory | ( | ) |
Returns the number of slots in the inventory.
Implements net.minecraft.inventory.IInventory.
| ItemStack net.minecraft.inventory.InventoryBasic.getStackInSlot | ( | int | par1) |
Returns the stack in slot i
Implements net.minecraft.inventory.IInventory.
| ItemStack net.minecraft.inventory.InventoryBasic.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.InventoryBasic.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.InventoryBasic.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.InventoryBasic.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.InventoryBasic.onInventoryChanged | ( | ) |
Called when an the contents of an Inventory change, usually
Implements net.minecraft.inventory.IInventory.
| void net.minecraft.inventory.InventoryBasic.openChest | ( | ) |
Implements net.minecraft.inventory.IInventory.
| void net.minecraft.inventory.InventoryBasic.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.