Class EvtRegionBorder
java.lang.Object
org.skriptlang.skript.lang.structure.Structure
ch.njol.skript.lang.SkriptEvent
ch.njol.skript.hooks.regions.events.EvtRegionBorder
- All Implemented Interfaces:
Debuggable
,SyntaxElement
-
Nested Class Summary
Nested classes/interfaces inherited from class org.skriptlang.skript.lang.structure.Structure
Structure.Priority, Structure.StructureData
-
Field Summary
Fields inherited from class ch.njol.skript.lang.SkriptEvent
eventPriority, PRIORITY, trigger
Fields inherited from class org.skriptlang.skript.lang.structure.Structure
DEFAULT_PRIORITY
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
check
(org.bukkit.event.Event event) Checks whether the given Event applies, e.g.boolean
init
(Literal<?>[] args, int matchedPattern, SkriptParser.ParseResult parseResult) Called just after the constructorboolean
boolean
postLoad()
This method handles the registration of this event with Skript and Bukkit.toString
(@Nullable org.bukkit.event.Event event, boolean debug) void
unload()
This method handles the unregistration of this event with Skript and Bukkit.Methods inherited from class ch.njol.skript.lang.SkriptEvent
canExecuteAsynchronously, fixPattern, getEventClasses, getEventPriority, getPriority, init, load, postUnload, preLoad, shouldLoadEvent
Methods inherited from class org.skriptlang.skript.lang.structure.Structure
getEntryContainer, init, parse, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface ch.njol.skript.lang.SyntaxElement
getParser
-
Constructor Details
-
EvtRegionBorder
public EvtRegionBorder()
-
-
Method Details
-
init
Description copied from class:SkriptEvent
Called just after the constructor- Specified by:
init
in classSkriptEvent
-
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 classSkriptEvent
- 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 classSkriptEvent
-
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 classSkriptEvent
- Returns:
- true if this is SkriptEvent is represented by the Bukkit Event or false if not
-
isEventPrioritySupported
public boolean isEventPrioritySupported()- Overrides:
isEventPrioritySupported
in classSkriptEvent
- Returns:
- whether this SkriptEvent supports event priorities
-
toString
- 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
-