EventsCallOptions

data class EventsCallOptions(val player: Player, val target: EffectiveAbstractInteract.Target.Item, val click: EffectiveAbstractInteract.Click, val hand: EquipmentSlot, val clickedBlock: Block?, val blockFace: BlockFace?, val clickedEntity: Entity?) : EffectiveAbstractInteract.EventsCallOptions<EffectiveAbstractInteract.Target.Item>

Context passed to an InteractCallback: the player, the clicked item, the click type and hand, plus the clicked block/face/entity when applicable.

Constructors

Link copied to clipboard
constructor(player: Player, target: EffectiveAbstractInteract.Target.Item, click: EffectiveAbstractInteract.Click, hand: EquipmentSlot, clickedBlock: Block?, blockFace: BlockFace?, clickedEntity: Entity?)

Properties

Link copied to clipboard
val blockFace: BlockFace?
Link copied to clipboard
open override val click: EffectiveAbstractInteract.Click
Link copied to clipboard
val clickedBlock: Block?
Link copied to clipboard
val clickedEntity: Entity?
Link copied to clipboard
open override val hand: EquipmentSlot
Link copied to clipboard
val item: ItemStack
Link copied to clipboard
open override val player: Player
Link copied to clipboard
open override val target: EffectiveAbstractInteract.Target.Item