PlayerShootBowEvent

@Since(version = "2.2")
class PlayerShootBowEvent(val shooter: Player, val bow: ItemStack?, val consumable: ItemStack?, val projectile: Entity, val hand: EquipmentSlot, val force: Float, val consumeHand: Boolean) : Event, Cancellable

This event is called when a player shoots a bow.

Parameters

shooter

The player who shot the bow.

bow

The bow that was shot.

consumable

The item that was consumed when the bow was shot.

projectile

The projectile that was shot.

hand

The hand that the bow was shot from.

force

The force that the bow was shot with.

consumeHand

Whether the hand that the bow was shot from should be consumed.

Constructors

Link copied to clipboard
constructor(shooter: Player, bow: ItemStack?, consumable: ItemStack?, projectile: Entity, hand: EquipmentSlot, force: Float, consumeHand: Boolean)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
val bow: ItemStack?
Link copied to clipboard
val consumable: ItemStack?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val hand: EquipmentSlot
Link copied to clipboard
val projectile: Entity
Link copied to clipboard
val shooter: Player

The player who shot the bow.

Functions

Link copied to clipboard
@NotNull
open fun getEventName(): String
Link copied to clipboard
open override fun getHandlers(): HandlerList
Link copied to clipboard
Link copied to clipboard
open override fun isCancelled(): Boolean
Link copied to clipboard
open override fun setCancelled(cancel: Boolean)