Cancellablepublic class PlayerReadyArrowEvent extends PlayerEvent implements Cancellable
Event.Resultplayer| Constructor | Description |
|---|---|
PlayerReadyArrowEvent(Player player,
ItemStack bow,
ItemStack arrow) |
| Modifier and Type | Method | Description |
|---|---|---|
ItemStack |
getArrow() |
|
ItemStack |
getBow() |
|
static HandlerList |
getHandlerList() |
|
HandlerList |
getHandlers() |
|
boolean |
isCancelled() |
Whether or not use of this arrow is cancelled.
|
void |
setCancelled(boolean cancel) |
Cancel use of this arrow.
|
callEvent, getEventName, isAsynchronousclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPlayer@NotNull public HandlerList getHandlers()
getHandlers in class Event@NotNull public static HandlerList getHandlerList()
public boolean isCancelled()
isCancelled in interface Cancellablepublic void setCancelled(boolean cancel)
setCancelled in interface Cancellablecancel - true if you wish to cancel this eventCopyright © 2020. All rights reserved.