Package btw.block.tileentity
Class LoomTileEntity
java.lang.Object
net.minecraft.src.TileEntity
btw.block.tileentity.LoomTileEntity
- All Implemented Interfaces:
IInventory
-
Field Summary
Fields inherited from class net.minecraft.src.TileEntity
blockMetadata, blockType, tileEntityInvalid, worldObj, xCoord, yCoord, zCoord -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddecrStackSize(int var1, int var2) Removes from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a new stack.intReturns the maximum stack size for a inventory slot.Returns the name of the inventory.intReturns the number of slots in the inventory.getStackInSlot(int var1) Returns the stack in slot igetStackInSlotOnClosing(int var1) 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.booleanIf this returns false, the inventory name will be used as an unlocalized name, and translated into the player's language.booleanisItemValidForSlot(int var1, ItemStack var2) Returns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.booleanDo not make give this method the name canInteractWith because it clashes with ContainervoidvoidsetInventorySlotContents(int var1, ItemStack var2) Sets the given item stack to the specified slot in the inventory (can be crafting or armor sections).Methods inherited from class net.minecraft.src.TileEntity
addMapping, createAndLoadEntity, func_85027_a, getBlockMetadata, getBlockType, getDescriptionPacket, getDistanceFrom, getMaxRenderDistanceSquared, getWorldObj, hasWorldObj, invalidate, isInvalid, onInventoryChanged, readFromNBT, receiveClientEvent, setWorldObj, updateContainingBlockInfo, updateEntity, validate, writeToNBTMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.src.IInventory
onInventoryChanged
-
Constructor Details
-
LoomTileEntity
public LoomTileEntity()
-
-
Method Details
-
getSizeInventory
public int getSizeInventory()Description copied from interface:IInventoryReturns the number of slots in the inventory.- Specified by:
getSizeInventoryin interfaceIInventory
-
getStackInSlot
Description copied from interface:IInventoryReturns the stack in slot i- Specified by:
getStackInSlotin interfaceIInventory
-
decrStackSize
Description copied from interface:IInventoryRemoves from an inventory slot (first arg) up to a specified number (second arg) of items and returns them in a new stack.- Specified by:
decrStackSizein interfaceIInventory
-
getStackInSlotOnClosing
Description copied from interface:IInventoryWhen 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.- Specified by:
getStackInSlotOnClosingin interfaceIInventory
-
setInventorySlotContents
Description copied from interface:IInventorySets the given item stack to the specified slot in the inventory (can be crafting or armor sections).- Specified by:
setInventorySlotContentsin interfaceIInventory
-
getInvName
Description copied from interface:IInventoryReturns the name of the inventory.- Specified by:
getInvNamein interfaceIInventory
-
isInvNameLocalized
public boolean isInvNameLocalized()Description copied from interface:IInventoryIf 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.- Specified by:
isInvNameLocalizedin interfaceIInventory
-
getInventoryStackLimit
public int getInventoryStackLimit()Description copied from interface:IInventoryReturns 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?*- Specified by:
getInventoryStackLimitin interfaceIInventory
-
isUseableByPlayer
Description copied from interface:IInventoryDo not make give this method the name canInteractWith because it clashes with Container- Specified by:
isUseableByPlayerin interfaceIInventory
-
openChest
public void openChest()- Specified by:
openChestin interfaceIInventory
-
closeChest
public void closeChest()- Specified by:
closeChestin interfaceIInventory
-
isItemValidForSlot
Description copied from interface:IInventoryReturns true if automation is allowed to insert the given stack (ignoring stack size) into the given slot.- Specified by:
isItemValidForSlotin interfaceIInventory
-