|
YATS/Forge Documentation
|
Public Member Functions | |
| InventoryCrafting (Container par1Container, int par2, int par3) | |
| int | getSizeInventory () |
| ItemStack | getStackInSlot (int par1) |
| ItemStack | getStackInRowAndColumn (int par1, int par2) |
| String | getInvName () |
| boolean | isInvNameLocalized () |
| ItemStack | getStackInSlotOnClosing (int par1) |
| ItemStack | decrStackSize (int par1, int par2) |
| 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.InventoryCrafting.InventoryCrafting | ( | Container | par1Container, |
| int | par2, | ||
| int | par3 | ||
| ) |
| void net.minecraft.inventory.InventoryCrafting.closeChest | ( | ) |
Implements net.minecraft.inventory.IInventory.
| ItemStack net.minecraft.inventory.InventoryCrafting.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.InventoryCrafting.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.InventoryCrafting.getInvName | ( | ) |
Returns the name of the inventory.
Implements net.minecraft.inventory.IInventory.
| int net.minecraft.inventory.InventoryCrafting.getSizeInventory | ( | ) |
Returns the number of slots in the inventory.
Implements net.minecraft.inventory.IInventory.
| ItemStack net.minecraft.inventory.InventoryCrafting.getStackInRowAndColumn | ( | int | par1, |
| int | par2 | ||
| ) |
Returns the itemstack in the slot specified (Top left is 0, 0). Args: row, column
| ItemStack net.minecraft.inventory.InventoryCrafting.getStackInSlot | ( | int | par1) |
Returns the stack in slot i
Implements net.minecraft.inventory.IInventory.
| ItemStack net.minecraft.inventory.InventoryCrafting.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.InventoryCrafting.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.InventoryCrafting.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.InventoryCrafting.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.InventoryCrafting.onInventoryChanged | ( | ) |
Called when an the contents of an Inventory change, usually
Implements net.minecraft.inventory.IInventory.
| void net.minecraft.inventory.InventoryCrafting.openChest | ( | ) |
Implements net.minecraft.inventory.IInventory.
| void net.minecraft.inventory.InventoryCrafting.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.