Class PlayerRiptideEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerRiptideEvent
- All Implemented Interfaces:
Cancellable
This event is fired when the player activates the riptide enchantment, using
their trident to propel them through the air.
N.B. the riptide action is currently performed client side, so manipulating the player in this event may have undesired effects.
N.B. the riptide action is currently performed client side, so manipulating the player in this event may have undesired effects.
-
Nested Class Summary
Nested classes/interfaces inherited from class Event
Event.Result -
Field Summary
Fields inherited from class PlayerEvent
player -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic @NotNull HandlerListgetItem()Gets the item containing the used enchantment.Get the velocity applied to the player as a result of this riptide.booleanGets the cancellation state of this event.voidsetCancelled(boolean cancel) Sets the cancellation state of this event.Methods inherited from class PlayerEvent
getPlayerMethods inherited from class Event
callEvent, getEventName, isAsynchronous
-
Constructor Details
-
PlayerRiptideEvent
-
PlayerRiptideEvent
@Internal @Deprecated(since="1.20.4", forRemoval=true) public PlayerRiptideEvent(@NotNull @NotNull Player player, @NotNull @NotNull ItemStack item) Deprecated, for removal: This API element is subject to removal in a future version.
-
-
Method Details
-
getItem
-
getVelocity
-
isCancelled
public boolean isCancelled()Description copied from interface:CancellableGets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins- Specified by:
isCancelledin interfaceCancellable- Returns:
trueif this event is cancelled
-
setCancelled
public void setCancelled(boolean cancel) Description copied from interface:CancellableSets the cancellation state of this event. A cancelled event will not be executed in the server, but will still pass to other plugins.- Specified by:
setCancelledin interfaceCancellable- Parameters:
cancel-trueif you wish to cancel this event
-
getHandlers
- Specified by:
getHandlersin classEvent
-
getHandlerList
-