Class EnderChestBlock

All Implemented Interfaces:
ITileEntityProvider

public class EnderChestBlock extends BlockEnderChest
  • Constructor Details

    • EnderChestBlock

      public EnderChestBlock(int iBlockID)
  • Method Details

    • createNewTileEntity

      public TileEntity createNewTileEntity(World world)
      Description copied from class: BlockEnderChest
      Returns a new instance of a block's tile entity class. Called on placing the block.
      Specified by:
      createNewTileEntity in interface ITileEntityProvider
      Overrides:
      createNewTileEntity in class BlockEnderChest
    • onBlockActivated

      public boolean onBlockActivated(World world, int i, int j, int k, EntityPlayer player, int iFacing, float fXClick, float fYClick, float fZClick)
      Description copied from class: BlockEnderChest
      Called upon block activation (right click on the block.)
      Overrides:
      onBlockActivated in class BlockEnderChest
    • breakBlock

      public void breakBlock(World world, int i, int j, int k, int iBlockID, int iMetadata)
      Description copied from class: BlockContainer
      Called on server worlds only when the block has been replaced by a different block ID, or the same block with a different metadata value, but before the new metadata value is set. Args: World, x, y, z, old block ID, old metadata
      Overrides:
      breakBlock in class BlockContainer
    • renderBlock

      @Environment(CLIENT) public boolean renderBlock(RenderBlocks renderBlocks, int i, int j, int k)
      Overrides:
      renderBlock in class Block