Package ch.njol.skript.events
Class EvtScript
java.lang.Object
ch.njol.skript.lang.SkriptEvent
ch.njol.skript.lang.SelfRegisteringSkriptEvent
ch.njol.skript.events.EvtScript
- All Implemented Interfaces:
Debuggable
,SyntaxElement
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
init(Literal<?>[] args, int matchedPattern, SkriptParser.ParseResult parser)
called just after the constructorvoid
This method is called after the whole trigger is loaded for events that fire themselves.toString(@Nullable org.bukkit.event.Event e, boolean debug)
void
unregister(Trigger t)
This method is called to unregister this event registered throughSelfRegisteringSkriptEvent.register(Trigger)
.void
This method is called to unregister all events registered throughSelfRegisteringSkriptEvent.register(Trigger)
.Methods inherited from class ch.njol.skript.lang.SelfRegisteringSkriptEvent
afterParse, check, isEventPrioritySupported
Methods inherited from class ch.njol.skript.lang.SkriptEvent
getEventClasses, getEventPriority, init, shouldLoadEvent, 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
-
EvtScript
public EvtScript()
-
-
Method Details
-
init
Description copied from class:SkriptEvent
called just after the constructor- Specified by:
init
in classSkriptEvent
-
register
Description copied from class:SelfRegisteringSkriptEvent
This method is called after the whole trigger is loaded for events that fire themselves.- Specified by:
register
in classSelfRegisteringSkriptEvent
- Parameters:
t
- the trigger to register to this event
-
unregister
Description copied from class:SelfRegisteringSkriptEvent
This method is called to unregister this event registered throughSelfRegisteringSkriptEvent.register(Trigger)
.- Specified by:
unregister
in classSelfRegisteringSkriptEvent
- Parameters:
t
- the same trigger which was registered for this event
-
unregisterAll
public void unregisterAll()Description copied from class:SelfRegisteringSkriptEvent
This method is called to unregister all events registered throughSelfRegisteringSkriptEvent.register(Trigger)
. This is called on all registered events, thus it can also only unregister the event it is called on.- Specified by:
unregisterAll
in classSelfRegisteringSkriptEvent
-
toString
- 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
-