Package net.minecraft.src
Class TileEntityChest
- java.lang.Object
-
- net.minecraft.src.TileEntity
-
- net.minecraft.src.TileEntityChest
-
- All Implemented Interfaces:
IInventory
public class TileEntityChest extends TileEntity implements IInventory
-
-
Field Summary
Fields Modifier and Type Field Description booleanadjacentChestCheckedTileEntityChestadjacentChestXNegTileEntityChestadjacentChestXPosTileEntityChestadjacentChestZNegTileEntityChestadjacentChestZPosfloatlidAngleintnumUsingPlayersfloatprevLidAngle-
Fields inherited from class net.minecraft.src.TileEntity
blockMetadata, blockType, tileEntityInvalid, worldObj, xCoord, yCoord, zCoord
-
-
Constructor Summary
Constructors Constructor Description TileEntityChest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckForAdjacentChests()voidcloseChest()ItemStackdecrStackSize(int var1, int var2)intgetInventoryStackLimit()java.lang.StringgetInvName()intgetSizeInventory()ItemStackgetStackInSlot(int var1)ItemStackgetStackInSlotOnClosing(int var1)voidinvalidate()booleanisUseableByPlayer(Player var1)voidonTileEntityPowered(int var1, int var2)voidopenChest()voidreadFromNBT(NBTTagCompound var1)voidsetInventorySlotContents(int var1, ItemStack var2)voidupdateContainingBlockInfo()voidupdateEntity()voidwriteToNBT(NBTTagCompound var1)-
Methods inherited from class net.minecraft.src.TileEntity
createAndLoadEntity, getBlockMetadata, getBlockType, getDescriptionPacket, getDistanceFrom, isInvalid, onInventoryChanged, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.minecraft.src.IInventory
onInventoryChanged
-
-
-
-
Field Detail
-
adjacentChestChecked
public boolean adjacentChestChecked
-
adjacentChestZNeg
public TileEntityChest adjacentChestZNeg
-
adjacentChestXPos
public TileEntityChest adjacentChestXPos
-
adjacentChestXNeg
public TileEntityChest adjacentChestXNeg
-
adjacentChestZPos
public TileEntityChest adjacentChestZPos
-
lidAngle
public float lidAngle
-
prevLidAngle
public float prevLidAngle
-
numUsingPlayers
public int numUsingPlayers
-
-
Method Detail
-
getSizeInventory
public int getSizeInventory()
- Specified by:
getSizeInventoryin interfaceIInventory
-
getStackInSlot
public ItemStack getStackInSlot(int var1)
- Specified by:
getStackInSlotin interfaceIInventory
-
decrStackSize
public ItemStack decrStackSize(int var1, int var2)
- Specified by:
decrStackSizein interfaceIInventory
-
getStackInSlotOnClosing
public ItemStack getStackInSlotOnClosing(int var1)
- Specified by:
getStackInSlotOnClosingin interfaceIInventory
-
setInventorySlotContents
public void setInventorySlotContents(int var1, ItemStack var2)- Specified by:
setInventorySlotContentsin interfaceIInventory
-
getInvName
public java.lang.String getInvName()
- Specified by:
getInvNamein interfaceIInventory
-
readFromNBT
public void readFromNBT(NBTTagCompound var1)
- Overrides:
readFromNBTin classTileEntity
-
writeToNBT
public void writeToNBT(NBTTagCompound var1)
- Overrides:
writeToNBTin classTileEntity
-
getInventoryStackLimit
public int getInventoryStackLimit()
- Specified by:
getInventoryStackLimitin interfaceIInventory
-
isUseableByPlayer
public boolean isUseableByPlayer(Player var1)
- Specified by:
isUseableByPlayerin interfaceIInventory
-
updateContainingBlockInfo
public void updateContainingBlockInfo()
- Overrides:
updateContainingBlockInfoin classTileEntity
-
checkForAdjacentChests
public void checkForAdjacentChests()
-
updateEntity
public void updateEntity()
- Overrides:
updateEntityin classTileEntity
-
onTileEntityPowered
public void onTileEntityPowered(int var1, int var2)- Overrides:
onTileEntityPoweredin classTileEntity
-
openChest
public void openChest()
- Specified by:
openChestin interfaceIInventory
-
closeChest
public void closeChest()
- Specified by:
closeChestin interfaceIInventory
-
invalidate
public void invalidate()
- Overrides:
invalidatein classTileEntity
-
-