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

  • 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()