PItemDisplay

class PItemDisplay(var id: NamespacedKey, var type: EntityType, var entity: ItemDisplay) : IDisplay<ItemDisplay> , DisplayInteraction<ItemDisplay>

Constructors

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

Properties

Link copied to clipboard
Link copied to clipboard
open override var entity: ItemDisplay
Link copied to clipboard
open override var id: NamespacedKey
Link copied to clipboard
lateinit var interaction: Interaction
Link copied to clipboard
lateinit var item: ItemStack
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)