|
YATS/Forge Documentation
|
Public Member Functions | |
| int | getSizeInventory () |
| ItemStack | getStackInSlot (int par1) |
| String | getInvName () |
| boolean | isInvNameLocalized () |
| 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) |
| void net.minecraft.inventory.InventoryCraftResult.closeChest | ( | ) |
Implements net.minecraft.inventory.IInventory.
| ItemStack net.minecraft.inventory.InventoryCraftResult.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.InventoryCraftResult.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.InventoryCraftResult.getInvName | ( | ) |
Returns the name of the inventory.
Implements net.minecraft.inventory.IInventory.
| int net.minecraft.inventory.InventoryCraftResult.getSizeInventory | ( | ) |
Returns the number of slots in the inventory.
Implements net.minecraft.inventory.IInventory.
| ItemStack net.minecraft.inventory.InventoryCraftResult.getStackInSlot | ( | int | par1) |
Returns the stack in slot i
Implements net.minecraft.inventory.IInventory.
| ItemStack net.minecraft.inventory.InventoryCraftResult.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.InventoryCraftResult.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.InventoryCraftResult.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.InventoryCraftResult.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.InventoryCraftResult.onInventoryChanged | ( | ) |
Called when an the contents of an Inventory change, usually
Implements net.minecraft.inventory.IInventory.
| void net.minecraft.inventory.InventoryCraftResult.openChest | ( | ) |
Implements net.minecraft.inventory.IInventory.
| void net.minecraft.inventory.InventoryCraftResult.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.