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.
Name | Parameters | Return value | Notes |
GetBlockType |
|
|
Returns the blocktype which is represented by this blockentity. This is the primary means of type-identification |
GetChunkX |
|
|
Returns the chunk X-coord of the block entity's chunk |
GetChunkZ |
|
|
Returns the chunk Z-coord of the block entity's chunk |
GetPos |
|
|
Returns the name of the parent class, or empty string if no parent class. |
GetPosX |
|
|
Returns the block X-coord of the block entity's block |
GetPosY |
|
|
Returns the block Y-coord of the block entity's block |
GetPosZ |
|
|
Returns the block Z-coord of the block entity's block |
GetRelPos |
|
|
Returns the relative coords of the block entity's block within its chunk |
GetRelX |
|
|
Returns the relative X coord of the block entity's block within the chunk |
GetRelZ |
|
|
Returns the relative Z coord of the block entity's block within the chunk |
GetWorld |
|
|
Returns the world to which the block entity belongs |