Tile Entity
TileEntity represents a tile entity with the registry name and the simple class name of the block.
| property | type | description |
|---|---|---|
| name | String | registry name of the block |
| type | String | simple class name of the block |
INFO
Assumes variable tileEntity is defined.
Example: List tileEntities = world.getTileEntities();
See also: world.getTileEntities()
getPosition
Returns the tile entity position as a Vec3.
java
Vec3 position = tileEntity.getPosition();getSkullData
Returns skull metadata when the tile entity is a skull. The array contains [type, rotation, name, uuid].
java
Object[] skullData = tileEntity.getSkullData();