Class TileEntityEnderChest

java.lang.Object
net.minecraft.src.TileEntity
net.minecraft.src.TileEntityEnderChest

public class TileEntityEnderChest extends TileEntity
  • Field Details

    • lidAngle

      public float lidAngle
      The current angle of the chest lid (between 0 and 1)
    • prevLidAngle

      public float prevLidAngle
      The angle of the chest lid last tick
    • numUsingPlayers

      public int numUsingPlayers
      The 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:
      updateEntity in class TileEntity
    • 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:
      receiveClientEvent in class TileEntity
    • invalidate

      public void invalidate()
      invalidates a tile entity
      Overrides:
      invalidate in class TileEntity
    • openChest

      public void openChest()
    • closeChest

      public void closeChest()
    • isUseableByPlayer

      public boolean isUseableByPlayer(EntityPlayer par1EntityPlayer)
    • readFromNBT

      public void readFromNBT(NBTTagCompound tag)
      Description copied from class: TileEntity
      Reads a tile entity from NBT.
      Overrides:
      readFromNBT in class TileEntity
    • writeToNBT

      public void writeToNBT(NBTTagCompound tag)
      Description copied from class: TileEntity
      Writes a tile entity to NBT.
      Overrides:
      writeToNBT in class TileEntity
    • getLocalEnderChestInventory

      public InventoryEnderChest getLocalEnderChestInventory()