Package net.minecraft.src
Class TileEntityEnderChest
java.lang.Object
net.minecraft.src.TileEntity
net.minecraft.src.TileEntityEnderChest
-
Field Summary
FieldsModifier and TypeFieldDescriptionfloatThe current angle of the chest lid (between 0 and 1)intThe number of players currently using this ender chest.floatThe angle of the chest lid last tickFields inherited from class net.minecraft.src.TileEntity
blockMetadata, blockType, tileEntityInvalid, worldObj, xCoord, yCoord, zCoord -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidinvalidates a tile entitybooleanisUseableByPlayer(EntityPlayer par1EntityPlayer) voidvoidReads a tile entity from NBT.booleanreceiveClientEvent(int par1, int par2) Called when a client event is received with the event number and argument, see World.sendClientEventvoidAllows the entity to update its state.voidwriteToNBT(NBTTagCompound tag) Writes a tile entity to NBT.Methods inherited from class net.minecraft.src.TileEntity
addMapping, createAndLoadEntity, func_85027_a, getBlockMetadata, getBlockType, getDescriptionPacket, getDistanceFrom, getMaxRenderDistanceSquared, getWorldObj, hasWorldObj, isInvalid, onInventoryChanged, setWorldObj, updateContainingBlockInfo, validate
-
Field Details
-
lidAngle
public float lidAngleThe current angle of the chest lid (between 0 and 1) -
prevLidAngle
public float prevLidAngleThe angle of the chest lid last tick -
numUsingPlayers
public int numUsingPlayersThe number of players currently using this ender chest.
-
-
Constructor Details
-
TileEntityEnderChest
public TileEntityEnderChest()
-
-
Method Details
-
updateEntity
public void updateEntity()Allows the entity to update its state. Overridden in most subclasses, e.g. the mob spawner uses this to count ticks and creates a new spawn inside its implementation.- Overrides:
updateEntityin classTileEntity
-
receiveClientEvent
public boolean receiveClientEvent(int par1, int par2) Called when a client event is received with the event number and argument, see World.sendClientEvent- Overrides:
receiveClientEventin classTileEntity
-
invalidate
public void invalidate()invalidates a tile entity- Overrides:
invalidatein classTileEntity
-
openChest
public void openChest() -
closeChest
public void closeChest() -
isUseableByPlayer
-
readFromNBT
Description copied from class:TileEntityReads a tile entity from NBT.- Overrides:
readFromNBTin classTileEntity
-
writeToNBT
Description copied from class:TileEntityWrites a tile entity to NBT.- Overrides:
writeToNBTin classTileEntity
-
getLocalEnderChestInventory
-