Optional
clickCalled 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.
Optional
containerEvents of the container on the server side.
Example of the server container event function.
Optional
createdCalled when a TileEntity is created.
Optional
defaultDefault data values, will be initially added to TileEntity.data field.
Optional
destroyOccurs 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)
Optional
destroyOccurs when a block of the TileEntity is being destroyed. See Callback.DestroyBlockFunction for details.
Optional
eventsEvents that receive packets on the server side.
Example of the server packet event function. 'this.sendResponse' method is only available here.
Optional
getCalled to get the UI.IWindow object for the current TileEntity. The window is then opened within TileEntity.container when the player clicks it.
Optional
getCalled on client side, returns the window to open.
Optional
getCalled on server side and returns UI name to open on click.
Optional
initCalled when a TileEntity is initialized in the world.
Optional
loadCalled when the client copy is created.
Optional
onCalled 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
Optional
projectileOccurs when a projectile entity hits the TileEntity. See Callback.ProjectileHitFunction for details.
Optional
redstoneOccurs when the TileEntity should handle redstone signal. See Callback.RedstoneSignalFunction for details.
Optional
requireCalled when more liquid is required.
Optional
tickCalled every tick and should be used for all the updates of the TileEntity.
Optional
unloadCalled on destroying the client copy.
Optional
useUse ItemContainer that supports multiplayer.
Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.
Interface passed to TileEntity.registerPrototype function.