Any other user-defined methods and properties
BlockSource object to manipulate TileEntity's position in world
Called when player uses some item on a TileEntity
Client TileEntity prototype copy
Events of the container's client copy
Example of the client container event function
Events that receive packets on the client side
Example of the client packet event function
Called when the client copy is created
Called every tick on client thread
Called on destroying the client copy
TileEntity's item container
Events of the container on the server side
Example of the server container event function
Called when a TileEntity is created
TileEntity data values object
Default data values, will be initially added to TileEntity.data field
Occurs when the TileEntity is being destroyed
Occurs when a block of the TileEntity is being destroyed. See Callback.DestroyBlockFunction for details
dimension where the TileEntity is located
Events that receive packets on the server side
Example of the server packet event function. 'this.sendResponse' method is only available here.
Called to get the UI.IWindow object for the current TileEntity. The window is then opened within TileEntity.container when the player clicks it
Called on client side, returns the window to open
Called on server side and returns UI name to open on click
Called when a TileEntity is initialised in the world
True if TileEntity is loaded in the world
TileEntity's liquid storage
SyncedNetworkData object of the TileEntity
NetworkEntity object of the TileEntity
Occurs when a projectile entity hits the TileEntity. See Callback.ProjectileHitFunction for details
Occurs when the TileEntity should handle redstone signal. See Callback.RedstoneSignalFunction for details
True if TileEntity was destroyed
Called when more liquid is required
Destroys the TileEntity prototype
Sends the packet from server to all clients
Sends packet to specified client. AVAILABLE ONLY IN SERVER EVENT FUNCTIONS!
Called every tick and should be used for all the updates of the TileEntity
Use ItemContainer that supports multiplayer
X coord of the TileEntity in its dimension
Y coord of the TileEntity in its dimension
Z coord of the TileEntity in its dimension
If the block on the specified coordinates is a TileEntity block and is not initialized, initializes it and returns created TileEntity object
TileEntity if one was created, null otherwise
Destroys TileEntity, dropping its container
true if the TileEntity was destroyed successfully, false otherwise
If the block on the specified coordinates is a TileEntity, destroys it, dropping its container
true if the TileEntity was destroyed successfully, false otherwise
TileEntity's prototype by its numeric block id
a TileEntity on the specified coordinates or null if the block on the coordinates is not a TileEntity
numeric block id
true if the specified numeric block id is a TileEntity block id, false otherwise
Checks whether the TileEntity is in the loaded chunk or not
to be verified
true if the chunk with TileEntity and some of the surrounding chunks are loaded, false otherwise. The following chunks are verified:
Registers block as a TileEntity
numeric block id to be used as TileEntity
a set of parameters defining the TileEntity's behavior
Generated using TypeDoc
TileEntity is a powerful mechanism that allows for creation of interactive blocks such as chests, furnaces, etc.