Skip to content

TileEntityInGame

youyihj edited this page Nov 15, 2020 · 3 revisions

TileEntityInGame

@Since 1.4.0

The class represents the tile entity in actual game.

Importing the package

import mods.zenutils.cotx.TileEntityInGame;

ZenGetter & ZenSetter

name type has getter has setter description
id int The TileEntity's id, determined by the parameter of ExpandVanillaFactory#createActualTileEntity
data IData Its custom data

ZenMethod

  • updateCustomData(IData data) - update custom data of the tile entity

Get A TileEntityInGame

You can call worldObj.getCustomTileEntity(IBlockPos pos) to get a TileEntityInGame object. If there is no tile entity created by ZenUtils at the position, it will return null.

Clone this wiki locally