MultiblockGhostBlock

A block display that represents this block, showing the player what block needs to be placed in a specific location.

Constructors

Link copied to clipboard
constructor(entity: ItemDisplay)
constructor(entity: ItemDisplay, name: String)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
val key: @Nullable NamespacedKey
Link copied to clipboard
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
open override fun onInteract(event: PlayerInteractEntityEvent)

This may be called for both hands, so make sure you check which hand is used.

Link copied to clipboard
open override fun write(pdc: PersistentDataContainer)

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.