Readonly
blockIDBlock ID of tile.
BlockSource object to manipulate tile position in world.
Called when player uses some item on a TileEntity.
true
if the event is handled and should not be propagated to
the next handlers. Return true
if you don't want the user interface
to be opened.
Optional
clientClient tile entity prototype copy.
Tile item container.
Optional
containerEvents of the container on the server side.
Example of the server container event function.
Called when a TileEntity is created.
Tile data values object.
Default data values, will be initially added to TileEntity.data field.
Occurs when the TileEntity is being destroyed.
true
to prevent it.
TileEntity object from destroying (but if the block was destroyed, returning
true from this function doesn't replace the missing block with a new one)
Occurs when a block of the TileEntity is being destroyed. See Callback.DestroyBlockFunction for details.
Readonly
dimensionDimension where the tile is located.
Optional
eventsEvents 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.
Optional
getCalled on server side and returns UI name to open on click.
Called when a TileEntity is initialized in the world.
true
if tile is loaded in the world.
Tile liquid storage.
Called when the client copy is created.
Readonly
networkSyncedNetworkData object of the tile.
Readonly
networkInstance of TileEntity.networkEntityType for the tile.
Readonly
networkNetworkEntityType object of the tile.
Readonly
networktrue
if tile cannot tick, update functions will
not work in that case.
Called before every tile ticking to remove them.
Optional
onCalled when player connects to server.
connected player client
Optional
onCalled when player disconnects from server.
disconnected player client
Emulates click on this tile, calling TileEntity.TileEntityPrototype.click or opening screen otherwise if window has present.
true
if clicked or screen opened success, false
otherwise
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 tile has been destroyed.
Called when more liquid is required.
Destroys the tile prototype.
Sends the packet from server to all clients.
Sends packet to specified client.
Optional
tickCalled every tick and should be used for all the updates of the TileEntity.
Called on destroying the client copy.
Called every tick to TileEntity.TileEntityPrototype.tick each tile if TileEntity.noupdate not active.
Optional
useUse ItemContainer that supports multiplayer.
Readonly
xX coord of the tile in it's dimension.
Readonly
yY coord of the tile in it's dimension.
Readonly
zZ coord of the tile in it's dimension.
Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.
Interface passed to TileEntity.registerPrototype function.