LocalTileEntity
Hierarchy
- LocalTileEntityPrototype
- LocalTileEntity
Index
Properties
optionalcontainerEvents
Events of the container's client copy.
Type declaration
[eventName string]: (container: ItemContainer, window: UI.Window | UI.StandartWindow | UI.StandardWindow | UI.TabbedWindow | null, windowContent: UI.WindowContent | null, eventData: any) => void
Example of the client container event function.
readonlydimension
Dimension where the tile is located.
optionalevents
Events that receive packets on the client side.
Type declaration
[packetName string]: (packetData: any, packetExtra: any) => void
Example of the client packet event function.
optionalload
Called when the client copy is created.
Type declaration
Returns void
readonlynetworkData
SyncedNetworkData object of the tile.
readonlynetworkEntity
Instance of TileEntity.networkEntityType for the tile.
noupdate
true
if tile cannot tick, update functions will
not work in that case.
remove
true
if tile has been destroyed.
sendPacket
Sends the packet from client to server.
Type declaration
Parameters
name: string
data: object
Returns void
optionaltick
Called every tick on client thread; you cannot set tick later if there is no function at all.
Type declaration
Returns void
optionalunload
Called on destroying the client copy.
Type declaration
Returns void
readonlyx
X coord of the tile in it's dimension.
readonlyy
Y coord of the tile in it's dimension.
readonlyz
Z coord of the tile in it's dimension.
Interface passed to TileEntity.registerPrototype function as
client
property.