> For the complete documentation index, see [llms.txt](https://daikirai.gitbook.io/scripting/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://daikirai.gitbook.io/scripting/documentation/tile-entity.md).

# tile entity

{% hint style="info" %}
assumes variable `tileEntity` is defined.

example: `List tileEntities = world.getTileEntities();`

see also: [`world.getTileEntities()`](/scripting/documentation/world.md#gettileentities)
{% endhint %}

## properties

| property | type     | description                    |
| -------- | -------- | ------------------------------ |
| name     | `String` | registry name of the block     |
| type     | `String` | simple class name of the block |

***

### getPosition

returns the tile entity position as a [`Vec3`](/scripting/documentation/vec3.md).

```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();
```
