Package ch.njol.skript.lang.parser
Class ParserInstance.Data
java.lang.Object
ch.njol.skript.lang.parser.ParserInstance.Data
- Direct Known Subclasses:
DefaultValueData,InputSource.InputData,ReturnHandler.ReturnHandlerStack,Section.SectionContext,Structure.StructureData
- Enclosing class:
ParserInstance
An abstract class for addons that want to add data bound to a ParserInstance.
Extending classes may listen to the events like
onCurrentEventsChange(Class[]).
It is recommended you make a constructor with a ParserInstance parameter that
sends that parser instance upwards in a super call, so you can use
ParserInstance.registerData(MyData.class, MyData::new)-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected final ParserInstancevoidonCurrentEventsChange(Class<? extends org.bukkit.event.Event> @Nullable [] currentEvents) voidonCurrentScriptChange(@Nullable Config currentScript) Deprecated, for removal: This API element is subject to removal in a future version.
-
Constructor Details
-
Data
-
-
Method Details
-
getParser
-
onCurrentScriptChange
@Deprecated(since="2.11.0", forRemoval=true) public void onCurrentScriptChange(@Nullable @Nullable Config currentScript) Deprecated, for removal: This API element is subject to removal in a future version.SeeScriptLoader.LoaderEventinstead. -
onCurrentEventsChange
public void onCurrentEventsChange(Class<? extends org.bukkit.event.Event> @Nullable [] currentEvents)
-
ScriptLoader.LoaderEventinstead.