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 boolean
adjacentChestChecked
TileEntityChest
adjacentChestXNeg
TileEntityChest
adjacentChestXPos
TileEntityChest
adjacentChestZNeg
TileEntityChest
adjacentChestZPos
float
lidAngle
int
numUsingPlayers
float
prevLidAngle
-
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 void
checkForAdjacentChests()
void
closeChest()
ItemStack
decrStackSize(int var1, int var2)
int
getInventoryStackLimit()
java.lang.String
getInvName()
int
getSizeInventory()
ItemStack
getStackInSlot(int var1)
ItemStack
getStackInSlotOnClosing(int var1)
void
invalidate()
boolean
isUseableByPlayer(Player var1)
void
onTileEntityPowered(int var1, int var2)
void
openChest()
void
readFromNBT(NBTTagCompound var1)
void
setInventorySlotContents(int var1, ItemStack var2)
void
updateContainingBlockInfo()
void
updateEntity()
void
writeToNBT(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:
getSizeInventory
in interfaceIInventory
-
getStackInSlot
public ItemStack getStackInSlot(int var1)
- Specified by:
getStackInSlot
in interfaceIInventory
-
decrStackSize
public ItemStack decrStackSize(int var1, int var2)
- Specified by:
decrStackSize
in interfaceIInventory
-
getStackInSlotOnClosing
public ItemStack getStackInSlotOnClosing(int var1)
- Specified by:
getStackInSlotOnClosing
in interfaceIInventory
-
setInventorySlotContents
public void setInventorySlotContents(int var1, ItemStack var2)
- Specified by:
setInventorySlotContents
in interfaceIInventory
-
getInvName
public java.lang.String getInvName()
- Specified by:
getInvName
in interfaceIInventory
-
readFromNBT
public void readFromNBT(NBTTagCompound var1)
- Overrides:
readFromNBT
in classTileEntity
-
writeToNBT
public void writeToNBT(NBTTagCompound var1)
- Overrides:
writeToNBT
in classTileEntity
-
getInventoryStackLimit
public int getInventoryStackLimit()
- Specified by:
getInventoryStackLimit
in interfaceIInventory
-
isUseableByPlayer
public boolean isUseableByPlayer(Player var1)
- Specified by:
isUseableByPlayer
in interfaceIInventory
-
updateContainingBlockInfo
public void updateContainingBlockInfo()
- Overrides:
updateContainingBlockInfo
in classTileEntity
-
checkForAdjacentChests
public void checkForAdjacentChests()
-
updateEntity
public void updateEntity()
- Overrides:
updateEntity
in classTileEntity
-
onTileEntityPowered
public void onTileEntityPowered(int var1, int var2)
- Overrides:
onTileEntityPowered
in classTileEntity
-
openChest
public void openChest()
- Specified by:
openChest
in interfaceIInventory
-
closeChest
public void closeChest()
- Specified by:
closeChest
in interfaceIInventory
-
invalidate
public void invalidate()
- Overrides:
invalidate
in classTileEntity
-
-