Package org.bukkit.event.player
Class PlayerRiptideEvent
java.lang.Object
org.bukkit.event.Event
org.bukkit.event.player.PlayerEvent
org.bukkit.event.player.PlayerRiptideEvent
public class PlayerRiptideEvent extends PlayerEvent
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
-
Field Summary
-
Constructor Summary
Constructors Constructor Description PlayerRiptideEvent(Player who, ItemStack item)
-
Method Summary
Modifier and Type Method Description static HandlerList
getHandlerList()
HandlerList
getHandlers()
ItemStack
getItem()
Gets the item containing the used enchantment.
-
Constructor Details
-
Method Details
-
getItem
Gets the item containing the used enchantment.- Returns:
- held enchanted item
-
getHandlers
- Specified by:
getHandlers
in classEvent
-
getHandlerList
-