> ## Documentation Index
> Fetch the complete documentation index at: https://docs.cheart.getvapu.today/llms.txt
> Use this file to discover all available pages before exploring further.

# TileEntity

> 瓦片实体（箱子 / 熔炉 / 告示牌 等）

从 `world.getTileEntities()` 返回，只包含**已加载区块**里的 tile entity。

```java theme={null}
String getType()         // 注册 id，如 "minecraft:chest"
String getClassName()    // 具体实现类 SimpleName（诊断用）

int    getX()
int    getY()
int    getZ()
Vec3   getPosition()

net.minecraft.world.level.block.entity.BlockEntity raw()
```

## 示例

```java theme={null}
for (te : me.getWorld().getTileEntities()) {
    if ("minecraft:chest".equals(te.getType())) {
        me.log("chest @ " + te.getPosition());
    }
}
```
