YATS/Forge Documentation
|
Public Member Functions | |
int | getSizeInventory () |
ItemStack | getStackInSlot (int i) |
ItemStack | decrStackSize (int i, int j) |
ItemStack | getStackInSlotOnClosing (int i) |
void | setInventorySlotContents (int i, ItemStack itemstack) |
String | getInvName () |
boolean | isInvNameLocalized () |
int | getInventoryStackLimit () |
void | onInventoryChanged () |
boolean | isUseableByPlayer (EntityPlayer entityplayer) |
void | openChest () |
void | closeChest () |
boolean | isStackValidForSlot (int i, ItemStack itemstack) |
void net.minecraft.inventory.IInventory.closeChest | ( | ) |
Implemented in net.minecraft.entity.player.InventoryPlayer, net.minecraft.tileentity.TileEntityChest, net.minecraft.tileentity.TileEntityFurnace, net.minecraft.tileentity.TileEntityBeacon, net.minecraft.tileentity.TileEntityBrewingStand, net.minecraft.tileentity.TileEntityDispenser, net.minecraft.tileentity.TileEntityHopper, net.minecraft.inventory.InventoryMerchant, net.minecraft.inventory.InventoryCrafting, net.minecraft.inventory.InventoryBasic, net.minecraft.entity.item.EntityMinecartContainer, net.minecraft.inventory.InventoryLargeChest, net.minecraft.inventory.InventoryCraftResult, net.minecraft.inventory.InventoryEnderChest, YATS.tile.TileAdvExtractor, and YATS.tile.TileRoutingMarshaller.
ItemStack net.minecraft.inventory.IInventory.decrStackSize | ( | int | i, |
int | j | ||
) |
Removes from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a new stack.
Implemented in net.minecraft.entity.player.InventoryPlayer, net.minecraft.tileentity.TileEntityBeacon, net.minecraft.tileentity.TileEntityBrewingStand, net.minecraft.tileentity.TileEntityHopper, net.minecraft.inventory.InventoryCrafting, net.minecraft.entity.item.EntityMinecartContainer, net.minecraft.inventory.InventoryLargeChest, net.minecraft.tileentity.TileEntityChest, net.minecraft.tileentity.TileEntityFurnace, net.minecraft.inventory.InventoryCraftResult, YATS.tile.TileAdvExtractor, YATS.tile.TileRoutingMarshaller, net.minecraft.inventory.InventoryMerchant, net.minecraft.tileentity.TileEntityDispenser, and net.minecraft.inventory.InventoryBasic.
int net.minecraft.inventory.IInventory.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?
Implemented in net.minecraft.entity.player.InventoryPlayer, net.minecraft.tileentity.TileEntityBeacon, net.minecraft.tileentity.TileEntityBrewingStand, net.minecraft.tileentity.TileEntityDispenser, net.minecraft.tileentity.TileEntityChest, net.minecraft.tileentity.TileEntityFurnace, net.minecraft.tileentity.TileEntityHopper, net.minecraft.entity.item.EntityMinecartContainer, net.minecraft.inventory.InventoryMerchant, net.minecraft.inventory.InventoryCrafting, net.minecraft.inventory.InventoryBasic, net.minecraft.inventory.InventoryLargeChest, net.minecraft.inventory.InventoryCraftResult, YATS.tile.TileAdvExtractor, and YATS.tile.TileRoutingMarshaller.
String net.minecraft.inventory.IInventory.getInvName | ( | ) |
Returns the name of the inventory.
Implemented in net.minecraft.entity.player.InventoryPlayer, net.minecraft.tileentity.TileEntityBeacon, net.minecraft.tileentity.TileEntityHopper, net.minecraft.entity.item.EntityMinecartContainer, net.minecraft.tileentity.TileEntityDispenser, net.minecraft.inventory.InventoryMerchant, net.minecraft.tileentity.TileEntityChest, net.minecraft.tileentity.TileEntityFurnace, net.minecraft.inventory.InventoryBasic, YATS.tile.TileAdvExtractor, YATS.tile.TileRoutingMarshaller, net.minecraft.inventory.InventoryCrafting, net.minecraft.inventory.InventoryLargeChest, net.minecraft.tileentity.TileEntityBrewingStand, net.minecraft.inventory.InventoryCraftResult, and net.minecraft.tileentity.TileEntityDropper.
int net.minecraft.inventory.IInventory.getSizeInventory | ( | ) |
Returns the number of slots in the inventory.
Implemented in net.minecraft.entity.player.InventoryPlayer, net.minecraft.tileentity.TileEntityBeacon, net.minecraft.inventory.InventoryBasic, net.minecraft.tileentity.TileEntityHopper, net.minecraft.tileentity.TileEntityBrewingStand, net.minecraft.tileentity.TileEntityChest, net.minecraft.entity.item.EntityMinecartHopper, net.minecraft.tileentity.TileEntityFurnace, YATS.tile.TileAdvExtractor, YATS.tile.TileRoutingMarshaller, net.minecraft.inventory.InventoryLargeChest, net.minecraft.inventory.InventoryCrafting, net.minecraft.entity.item.EntityMinecartChest, net.minecraft.inventory.InventoryMerchant, net.minecraft.tileentity.TileEntityDispenser, and net.minecraft.inventory.InventoryCraftResult.
ItemStack net.minecraft.inventory.IInventory.getStackInSlot | ( | int | i) |
Returns the stack in slot i
Implemented in net.minecraft.entity.player.InventoryPlayer, net.minecraft.tileentity.TileEntityBeacon, net.minecraft.tileentity.TileEntityBrewingStand, net.minecraft.tileentity.TileEntityHopper, net.minecraft.entity.item.EntityMinecartContainer, net.minecraft.inventory.InventoryLargeChest, net.minecraft.tileentity.TileEntityChest, net.minecraft.tileentity.TileEntityFurnace, YATS.tile.TileAdvExtractor, YATS.tile.TileRoutingMarshaller, net.minecraft.inventory.InventoryCrafting, net.minecraft.inventory.InventoryMerchant, net.minecraft.tileentity.TileEntityDispenser, net.minecraft.inventory.InventoryBasic, and net.minecraft.inventory.InventoryCraftResult.
ItemStack net.minecraft.inventory.IInventory.getStackInSlotOnClosing | ( | int | i) |
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.
Implemented in net.minecraft.entity.player.InventoryPlayer, net.minecraft.tileentity.TileEntityBeacon, net.minecraft.tileentity.TileEntityBrewingStand, net.minecraft.tileentity.TileEntityHopper, net.minecraft.entity.item.EntityMinecartContainer, net.minecraft.tileentity.TileEntityChest, net.minecraft.inventory.InventoryMerchant, net.minecraft.tileentity.TileEntityFurnace, net.minecraft.inventory.InventoryLargeChest, net.minecraft.inventory.InventoryCrafting, net.minecraft.tileentity.TileEntityDispenser, net.minecraft.inventory.InventoryBasic, net.minecraft.inventory.InventoryCraftResult, YATS.tile.TileAdvExtractor, and YATS.tile.TileRoutingMarshaller.
boolean net.minecraft.inventory.IInventory.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.
Implemented in net.minecraft.entity.player.InventoryPlayer, net.minecraft.tileentity.TileEntityBeacon, net.minecraft.tileentity.TileEntityHopper, net.minecraft.tileentity.TileEntityDispenser, net.minecraft.inventory.InventoryMerchant, net.minecraft.tileentity.TileEntityChest, net.minecraft.tileentity.TileEntityFurnace, net.minecraft.inventory.InventoryBasic, net.minecraft.inventory.InventoryCrafting, YATS.tile.TileAdvExtractor, YATS.tile.TileRoutingMarshaller, net.minecraft.inventory.InventoryLargeChest, net.minecraft.tileentity.TileEntityBrewingStand, and net.minecraft.inventory.InventoryCraftResult.
boolean net.minecraft.inventory.IInventory.isStackValidForSlot | ( | int | i, |
ItemStack | itemstack | ||
) |
Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.
Implemented in net.minecraft.entity.player.InventoryPlayer, net.minecraft.tileentity.TileEntityChest, net.minecraft.tileentity.TileEntityFurnace, net.minecraft.tileentity.TileEntityBeacon, net.minecraft.tileentity.TileEntityBrewingStand, net.minecraft.tileentity.TileEntityDispenser, net.minecraft.tileentity.TileEntityHopper, net.minecraft.inventory.InventoryMerchant, net.minecraft.inventory.InventoryCrafting, net.minecraft.inventory.InventoryBasic, net.minecraft.entity.item.EntityMinecartContainer, net.minecraft.inventory.InventoryLargeChest, net.minecraft.inventory.InventoryCraftResult, net.minecraft.inventory.InventoryEnderChest, YATS.tile.TileAdvExtractor, and YATS.tile.TileRoutingMarshaller.
boolean net.minecraft.inventory.IInventory.isUseableByPlayer | ( | EntityPlayer | entityplayer) |
Do not make give this method the name canInteractWith because it clashes with Container
Implemented in net.minecraft.entity.player.InventoryPlayer, net.minecraft.tileentity.TileEntityFurnace, net.minecraft.tileentity.TileEntityBeacon, net.minecraft.tileentity.TileEntityBrewingStand, net.minecraft.tileentity.TileEntityDispenser, net.minecraft.tileentity.TileEntityChest, net.minecraft.tileentity.TileEntityHopper, net.minecraft.inventory.InventoryMerchant, net.minecraft.inventory.InventoryCrafting, net.minecraft.inventory.InventoryBasic, net.minecraft.entity.item.EntityMinecartContainer, net.minecraft.inventory.InventoryLargeChest, net.minecraft.inventory.InventoryCraftResult, YATS.tile.TileAdvExtractor, YATS.tile.TileRoutingMarshaller, and net.minecraft.inventory.InventoryEnderChest.
void net.minecraft.inventory.IInventory.onInventoryChanged | ( | ) |
Called when an the contents of an Inventory change, usually
Implemented in net.minecraft.entity.player.InventoryPlayer, net.minecraft.inventory.InventoryMerchant, net.minecraft.inventory.InventoryCrafting, net.minecraft.entity.item.EntityMinecartContainer, net.minecraft.inventory.InventoryBasic, net.minecraft.inventory.InventoryLargeChest, net.minecraft.inventory.InventoryCraftResult, and net.minecraft.tileentity.TileEntityHopper.
void net.minecraft.inventory.IInventory.openChest | ( | ) |
Implemented in net.minecraft.entity.player.InventoryPlayer, net.minecraft.tileentity.TileEntityChest, net.minecraft.tileentity.TileEntityFurnace, net.minecraft.tileentity.TileEntityBeacon, net.minecraft.tileentity.TileEntityBrewingStand, net.minecraft.tileentity.TileEntityDispenser, net.minecraft.tileentity.TileEntityHopper, net.minecraft.inventory.InventoryMerchant, net.minecraft.inventory.InventoryCrafting, net.minecraft.inventory.InventoryBasic, net.minecraft.entity.item.EntityMinecartContainer, net.minecraft.inventory.InventoryLargeChest, net.minecraft.inventory.InventoryCraftResult, YATS.tile.TileAdvExtractor, YATS.tile.TileRoutingMarshaller, and net.minecraft.inventory.InventoryEnderChest.
void net.minecraft.inventory.IInventory.setInventorySlotContents | ( | int | i, |
ItemStack | itemstack | ||
) |
Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).
Implemented in net.minecraft.entity.player.InventoryPlayer, net.minecraft.tileentity.TileEntityBeacon, net.minecraft.tileentity.TileEntityBrewingStand, net.minecraft.tileentity.TileEntityHopper, net.minecraft.inventory.InventoryCrafting, net.minecraft.entity.item.EntityMinecartContainer, net.minecraft.tileentity.TileEntityChest, net.minecraft.inventory.InventoryMerchant, net.minecraft.tileentity.TileEntityFurnace, net.minecraft.tileentity.TileEntityDispenser, net.minecraft.inventory.InventoryLargeChest, net.minecraft.inventory.InventoryBasic, net.minecraft.inventory.InventoryCraftResult, YATS.tile.TileAdvExtractor, and YATS.tile.TileRoutingMarshaller.