Represents a block entity.

It might be required for you to import the package if you encounter any issues (like casting an Array), so better be safe than sorry and add the import at the very top of the file.

ZenScript
Copy
import crafttweaker.api.tileentity.MCTileEntity;

Extending CapabilityProvider<MCTileEntity>

Link to extending-capabilityprovidermctileentity

MCTileEntity extends CapabilityProvider<MCTileEntity>. That means all methods available in CapabilityProvider<MCTileEntity> are also available in MCTileEntity

Name: updateData

Return Type: void

ZenScript
Copy
MCTileEntity.updateData(data as MapData) as void
参数类型描述
参数
data
类型
MapData #地图数据
描述
No Description Provided
名称类型可获得可设置描述
名称
data
类型
MapData #地图数据
可获得
true
可设置
false
描述
No Description Provided
名称
类型
BlockPos
可获得
true
可设置
false
描述
No Description Provided
名称
world
类型
MCWorld
可获得
true
可设置
false
描述
No Description Provided