Class PlayerReadyArrowEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
com.destroystokyo.paper.event.player.PlayerReadyArrowEvent
- All Implemented Interfaces:
- Cancellable
Called when a player is firing a bow and the server is choosing an arrow to use.
- 
Nested Class SummaryNested classes/interfaces inherited from class org.bukkit.event.EventEvent.Result
- 
Field SummaryFields inherited from class org.bukkit.event.player.PlayerEventplayer
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptiongetArrow()getBow()static @NotNull HandlerListbooleanWhether or not use of this arrow is cancelled.voidsetCancelled(boolean cancel) Cancel use of this arrow.Methods inherited from class org.bukkit.event.player.PlayerEventgetPlayerMethods inherited from class org.bukkit.event.EventcallEvent, getEventName, isAsynchronous
- 
Constructor Details- 
PlayerReadyArrowEvent
 
- 
- 
Method Details- 
getBow- Returns:
- the player is using to fire the arrow
 
- 
getArrow- Returns:
- the arrow that is attempting to be used
 
- 
getHandlers- Specified by:
- getHandlersin class- Event
 
- 
getHandlerList
- 
isCancelledpublic boolean isCancelled()Whether or not use of this arrow is cancelled. On cancel, the server will try the next arrow available and fire another event.- Specified by:
- isCancelledin interface- Cancellable
- Returns:
- true if this event is cancelled
 
- 
setCancelledpublic void setCancelled(boolean cancel) Cancel use of this arrow. On cancel, the server will try the next arrow available and fire another event.- Specified by:
- setCancelledin interface- Cancellable
- Parameters:
- cancel- true if you wish to cancel this event
 
 
-