Перейти к основному содержанию

TileEntity.LocalTileEntityPrototype

Interface passed to TileEntity.registerPrototype function as client property.

Hierarchy

Index

Properties

optionalcontainerEvents

containerEvents?: {}

Events of the container's client copy.


Type declaration

optionalevents

events?: {}

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
since: 2.0.2b29

load?: () => void

Called when the client copy is created.


Type declaration

    • (): void
    • Returns void

optionaltick

tick?: () => void

Called every tick on client thread; you cannot set tick later if there is no function at all.


Type declaration

    • (): void
    • Returns void

optionalunload
since: 2.0.2b29

unload?: () => void

Called on destroying the client copy.


Type declaration

    • (): void
    • Returns void