Class 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.
  • Constructor Details

    • PlayerRiptideEvent

      public PlayerRiptideEvent(@NotNull Player who, @NotNull ItemStack item, @NotNull Vector velocity)
    • PlayerRiptideEvent

      @Deprecated public PlayerRiptideEvent(@NotNull Player who, @NotNull ItemStack item)
      Deprecated.
  • Method Details

    • getItem

      @NotNull public ItemStack getItem()
      Gets the item containing the used enchantment.
      Returns:
      held enchanted item
    • getVelocity

      @NotNull public Vector getVelocity()
      Get the velocity applied to the player as a result of this riptide.
      Returns:
      the riptide velocity
    • getHandlers

      @NotNull public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
    • getHandlerList

      @NotNull public static HandlerList getHandlerList()