Class ParserInstance.Data

Direct Known Subclasses:
Section.SectionContext, Structure.StructureData
Enclosing class:

public abstract static class ParserInstance.Data extends Object
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 Details

  • Method Details

    • getParser

      protected final ParserInstance getParser()
    • onCurrentScriptChange

      @Deprecated public void onCurrentScriptChange(@Nullable Config currentScript)
    • onCurrentEventsChange

      public void onCurrentEventsChange(Class<? extends org.bukkit.event.Event> @Nullable [] currentEvents)