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​(Player who,
                                  ItemStack item)
    • Method Detail

      • getItem

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

        public static HandlerList getHandlerList()