PTextDisplay

class PTextDisplay(var id: NamespacedKey, var type: EntityType, var entity: TextDisplay) : IDisplay<TextDisplay> , DisplayInteraction<TextDisplay>

Constructors

Link copied to clipboard
constructor(id: NamespacedKey, type: EntityType, entity: TextDisplay)

Properties

Link copied to clipboard
Link copied to clipboard
open override var entity: TextDisplay
Link copied to clipboard
open override var id: NamespacedKey
Link copied to clipboard
lateinit var interaction: Interaction
Link copied to clipboard
open override var type: EntityType

Functions

Link copied to clipboard
fun onHover(plugin: JavaPlugin, player: Player, detectScalar: Double? = 0.99, callback: (lock: Boolean) -> Unit)
Link copied to clipboard
fun onInteract(key: NamespacedKey, plugin: JavaPlugin, size: Pair<Float, Float>, player: Player, callback: ServerboundInteractPacketUtil.InteractEvent.() -> Unit)
Link copied to clipboard
fun text(component: Component, players: MutableList<Player>)