public class PlayerReadyArrowEvent extends PlayerEvent implements Cancellable
Event.Result
player
Constructor and Description |
---|
PlayerReadyArrowEvent(@NotNull Player player,
@NotNull ItemStack bow,
@NotNull ItemStack arrow) |
Modifier and Type | Method and Description |
---|---|
@NotNull ItemStack |
getArrow() |
@NotNull ItemStack |
getBow() |
static @NotNull HandlerList |
getHandlerList() |
@NotNull HandlerList |
getHandlers() |
boolean |
isCancelled()
Whether or not use of this arrow is cancelled.
|
void |
setCancelled(boolean cancel)
Cancel use of this arrow.
|
getPlayer
callEvent, getEventName, isAsynchronous
@NotNull public @NotNull ItemStack getArrow()
@NotNull public @NotNull HandlerList getHandlers()
getHandlers
in class Event
@NotNull public static @NotNull HandlerList getHandlerList()
public boolean isCancelled()
isCancelled
in interface Cancellable
public void setCancelled(boolean cancel)
setCancelled
in interface Cancellable
cancel
- true if you wish to cancel this eventCopyright © 2021. All rights reserved.