TileEntity
A custom tile entity.
Inheritors
Types
A menu for a TileEntity that uses the same instance for all players.
A menu for a TileEntity that uses a separate instance for each player.
A menu for a TileEntity.
Properties
The NovaTileEntityBlock this TileEntity.
The current NovaBlockState of this TileEntity.
The supervisor Job for coroutines of this TileEntity.
The FakeItemDisplay(s) used to display the model of this TileEntity, if it is entity-backed.
Whether this TileEntity is enabled.
The MenuContainer for this TileEntity's gui. May stay uninitialized if the TileEntity has no gui.
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.
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.
Handles right-clicking this TileEntity.
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.