Class FishHookStateChangeEvent

java.lang.Object
org.bukkit.event.Event
org.bukkit.event.entity.EntityEvent
io.papermc.paper.event.entity.FishHookStateChangeEvent

@NullMarked public final class FishHookStateChangeEvent extends EntityEvent
Called just before a FishHook's FishHook.HookState is changed.

If you want to monitor a player's fishing state transition, you can use PlayerFishEvent.

Since:
1.21.6
  • Constructor Details

  • Method Details

    • getNewHookState

      public FishHook.HookState getNewHookState()
      Get the new hook state of the FishHook.

      Refer to FishHook.getState() to get the current hook state.

      Returns:
      the new hook state
      Since:
      1.21.6
    • getEntity

      public FishHook getEntity()
      Description copied from class: EntityEvent
      Returns the Entity involved in this event
      Overrides:
      getEntity in class EntityEvent
      Returns:
      Entity who is involved in this event
      Since:
      1.21.6
    • getHandlers

      public HandlerList getHandlers()
      Specified by:
      getHandlers in class Event
      Since:
      1.21.6
    • getHandlerList

      public static HandlerList getHandlerList()
      Since:
      1.21.6