Class EvtRegionBorder

All Implemented Interfaces:
Debuggable, SyntaxElement

public class EvtRegionBorder extends SkriptEvent
  • Constructor Details

    • EvtRegionBorder

      public EvtRegionBorder()
  • 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
    • postLoad

      public boolean postLoad()
      Description copied from class: SkriptEvent
      This method handles the registration of this event with Skript and Bukkit. Only override this method if you know what you are doing!
      Overrides:
      postLoad in class SkriptEvent
      Returns:
      Whether postLoading was successful. An error should be printed prior to returning false to specify the cause.
    • unload

      public void unload()
      Description copied from class: SkriptEvent
      This method handles the unregistration of this event with Skript and Bukkit. Only override this method if you know what you are doing!
      Overrides:
      unload 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 leftclick event is only part of the PlayerInteractEvent, and this checks whether the player leftclicked 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
    • isEventPrioritySupported

      public boolean isEventPrioritySupported()
      Overrides:
      isEventPrioritySupported in class SkriptEvent
      Returns:
      whether this SkriptEvent supports event priorities
    • toString

      public String toString(@Nullable org.bukkit.event.Event event, boolean debug)
      Parameters:
      event - The event to get information to. 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