Constructors

Link copied to clipboard
constructor(entity: Interaction)
constructor(rebarGhostBlock: RebarGhostBlockHolder.RebarGhostBlock?, vanillaGhostBlock: RebarGhostBlockHolder.VanillaGhostBlock?)

Types

Link copied to clipboard
object Companion

Properties

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

Functions

Link copied to clipboard
open fun getPickItem(): ItemStack?

Returns the item that should be given when the entity is middle clicked.

Link copied to clipboard

Returns settings associated with the block.

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

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
fun hide()
Link copied to clipboard
open override fun onInteract(event: PlayerInteractEntityEvent, priority: EventPriority)

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

Link copied to clipboard
open fun onUnload()

Called when the entity is unloaded, not including when it is deleted.

Link copied to clipboard
Link copied to clipboard
fun show()
Link copied to clipboard
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.