TileEntity
A custom tile entity.
Inheritors
Properties
The current NovaBlockState of this TileEntity.
The BlockType of this TileEntity.
The supervisor Job for coroutines of this TileEntity.
The PacketItemDisplay(s) used to display the model of this TileEntity, if it is entity-backed.
Whether this TileEntity is enabled.
Whether this TileEntity is ticking.
This TileEntity's menu. Also tracks other Windows that belong to this TileEntity.
The OfflinePlayer that placed this TileEntity, may be null if it wasn't placed by a player.
The UUID of the Player that placed this TileEntity, may be null if it wasn't placed by a player.
The UUID of this TileEntity.
Functions
Registers a new drop provider that will be called during TileEntity.getDrops when this TileEntity is destroyed.
Gets a list of ItemStacks to be dropped when this TileEntity is destroyed. Requires the TileEntityDrops behavior on the block in order to be called.
Gets the amount of exp to be dropped when this TileEntity is destroyed.
Gets a List of all players that this TileEntity is visible for.
Called when this TileEntity is destroyed.
Called when this TileEntity is disabled.
Called when this TileEntity stops ticking.
Called when this TileEntity is enabled.
Called when this TileEntity starts ticking.
Called when this TileEntity is placed.
Called every tick for every TileEntity that is in a loaded chunk.
Removes the data stored under the given key, regardless of whether it is persistent or not.
Retrieves data from the data Compound of this TileEntity. If it can't find anything under the given key, the result of the defaultValue lambda is returned.
Retrieves data of the specified type or invokes the defaultValue lambda if there is no data stored under the given key.
Retrieves a FluidContainer stored under name or creates an empty new one. The values allowedTypes and capacity are not serialized and will be applied every time. Then registers the specified updateHandler.
Retrieves a VirtualInventory stored under name or creates a new one using the specified size. Then registers the specified postUpdateHandler and preUpdateHandler.
Retrieves a VirtualInventory stored under name or creates a new one using the specified size, maxStackSizes and persistent properties. Then registers the specified postUpdateHandler and preUpdateHandler.
Creates a DynamicRegion with the size stored under name or defaultSize if it doesn't exist, using createRegion. The minSize and maxSize properties are not serialized and will be applied every time.
Changes the block state of this TileEntity to blockState.
Same as BlockBehavior.use. Requires the TileEntityInteractive behavior on the block in order to be called.
Same as BlockBehavior.useItemOn. Requires the TileEntityInteractive behavior on the block in order to be called.