TileEntityInGame - friendlyhj/ZenUtils GitHub Wiki
@Since 1.4.0
The class represents the tile entity in actual game.
import mods.zenutils.cotx.TileEntityInGame;
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 |
- updateCustomData(IData data) - update custom data of the tile entity
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.