Cancellable
public class PlayerReadyArrowEvent extends PlayerEvent implements Cancellable
Event.Result
player
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, isAsynchronous
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPlayer
public ItemStack getBow()
public ItemStack getArrow()
public HandlerList getHandlers()
getHandlers
in class Event
public static 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 © 2019. All rights reserved.