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 Detail

      • PlayerRiptideEvent

        public PlayerRiptideEvent​(@NotNull
                                  @NotNull Player who,
                                  @NotNull
                                  @NotNull ItemStack item)
    • Method Detail

      • getItem

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

        @NotNull
        public static @NotNull HandlerList getHandlerList()