PylonEntity

abstract class PylonEntity<out E : Entity>(val entity: E)(source)

Represents a Pylon entity in the world.

All custom Pylon entities extend this class. Every instance of this class is wrapping a real entity in the world, and is stored in EntityStorage. All new block types must be registered using register, and all new Pylon entities must be added to EntityStorage with EntityStorage.add.

You are responsible for creating your Pylon entities; there are no place constructors as with Pylon blocks. This is because it doesn't make sense for Pylon to manage spawning entities. However, your entity must still have a load constructor that takes a single parameter of type E.

Inheritors

Constructors

Link copied to clipboard
constructor(key: NamespacedKey, entity: E)
constructor(entity: E)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val entity: E
Link copied to clipboard
val key: @Nullable NamespacedKey
Link copied to clipboard
Link copied to clipboard
val uuid: @NotNull UUID

Functions

Link copied to clipboard

Returns settings associated with the block.

Link copied to clipboard
open fun getWaila(player: Player): WailaConfig?

WAILA is the text that shows up when looking at a block to tell you what the block is. It can also be used for entities.

Link copied to clipboard

Called when the entity is saved.

Link copied to clipboard

Called when debug info is requested for the entity by someone using the DebugWaxedWeatheredCutCopperStairs. If there is any transient data that can be useful for debugging, you're encouraged to save it here.