Class EvtTestCase

java.lang.Object
ch.njol.skript.lang.SkriptEvent
ch.njol.skript.tests.runner.EvtTestCase
All Implemented Interfaces:
Debuggable, SyntaxElement

public class EvtTestCase extends SkriptEvent
  • Constructor Details

    • EvtTestCase

      public EvtTestCase()
  • 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 e)
      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
    • shouldLoadEvent

      public boolean shouldLoadEvent()
      Description copied from class: SkriptEvent
      Script loader checks this before loading items in event. If false is returned, they are not parsed and the event is not registered.
      Overrides:
      shouldLoadEvent in class SkriptEvent
      Returns:
      If this event should be loaded.
    • toString

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