====== cBlockEntity class ======
Block entities are simply blocks in the world that have persistent data, such as the text for a sign or contents of a chest. All block entities are also saved in the chunk data of the chunk they reside in. The cBlockEntity class acts as a common ancestor for all the individual block entities.

===== Inheritance =====
The following diagram shows the inheritance of the cBlockEntity class:

{{http://mc-server.xoft.cz/wiki/API%20class%20inheritance%20-%20blockentities.png|cBlockEntity inheritance diagram}}

===== Descendants =====
Currently there are these block entities that are derived from cBlockEntity:
  * [[api:cBlockEntityWithItems|cBlockEntityWithItems]]
    * [[api:cChestEntity | cChestEntity]]
    * [[api:cDropSpenserEntity | cDropSpenserEntity]]
      * [[api:cDispenserEntity | cDispenserEntity]]
      * [[api:cDropperEntity | cDropperEntity]]
    * [[api:cFurnaceEntity | cFurnaceEntity]]
    * [[api:cHopperEntity | cHopperEntity]]
  * [[api:cJukeboxEntity | cJukeboxEntity]]
  * [[api:cNoteEntity | cNoteEntity]]
  * [[api:cSignEntity | cSignEntity]]

===== Functions =====
^ Function ^ Parameters ^ Return value ^ Notes ^
| GetBlockType | | BLOCKTYPE | Returns the blocktype which is represented by this blockentity. This is the primary means of type-identification |
| GetChunkX | | number | Returns the chunk X-coord of the block entity's chunk |
| GetChunkZ | | number | Returns the chunk Z-coord of the block entity's chunk |
| GetPosX | | number | Returns the block X-coord of the block entity's block |
| GetPosY | | number | Returns the block Y-coord of the block entity's block |
| GetPosZ | | number | Returns the block Z-coord of the block entity's block |
| GetRelX | | number | Returns the relative X coord of the block entity's block within the chunk |
| GetRelZ | | number | Returns the relative Z coord of the block entity's block within the chunk |
| GetWorld | | [[API:cWorld|cWorld]] | Returns the world to which the block entity belongs |
