showEntity

abstract infix fun showEntity(key: HoverEvent.ShowEntity): Styler

Applies a hover event that shows an entity.

Return

this Styler instance for chaining

Parameters

key

the show entity hover event to apply


open fun showEntity(key: Key, uuid: UUID, name: Component = Component.empty()): Styler

Applies a hover event that shows an entity with the given key, UUID, and name.

Return

this Styler instance for chaining

Parameters

key

the entity type key

uuid

the entity UUID

name

the entity name (defaults to empty component)