All Implemented Interfaces:
Debuggable, SyntaxElement

@Name("Fishing") @Description({"Called when a player triggers a fishing event.","An entity hooked event is triggered when an entity gets caught by a fishing rod.","A fish escape event is called when the player fails to click on time, and the fish escapes.","A fish approaching event is when the bobber is waiting to be hooked, and a fish is approaching."}) @Examples({"on fishing line cast:","\tsend \"You caught a fish!\" to player","on fishing state of caught entity:","\tpush event-entity vector from entity to player"}) @RequiredPlugins("Paper (bobber lured)") @Since("2.10") public class EvtFish extends SkriptEvent
  • Constructor Details

    • EvtFish

      public EvtFish()
  • Method Details

    • init

      public boolean init(Literal<?>[] args, int matchedPattern, SkriptParser.ParseResult parseResult)
      Description copied from class: SkriptEvent
      Called just after the constructor
      Specified by:
      init in class SkriptEvent
    • check

      public boolean check(org.bukkit.event.Event event)
      Description copied from class: SkriptEvent
      Checks whether the given Event applies, e.g. the left-click event is only part of the PlayerInteractEvent, and this checks whether the player left-clicked or not. This method will only be called for events this SkriptEvent is registered for.
      Specified by:
      check in class SkriptEvent
      Returns:
      true if this is SkriptEvent is represented by the Bukkit Event or false if not
    • toString

      public String toString(@Nullable @Nullable org.bukkit.event.Event event, boolean debug)
      Parameters:
      event - The event to get information from. This is always null if debug == false.
      debug - If true this should print more information, if false this should print what is shown to the end user
      Returns:
      String representation of this object