Class ExampleEntryPointListeners

java.lang.Object
net.glasslauncher.mods.api.gcapi.impl.example.ExampleEntryPointListeners
All Implemented Interfaces:
PostConfigLoadedListener, PreConfigSavedListener

public class ExampleEntryPointListeners extends Object implements PreConfigSavedListener, PostConfigLoadedListener
  • Constructor Details

    • ExampleEntryPointListeners

      public ExampleEntryPointListeners()
  • Method Details

    • PostConfigLoaded

      public void PostConfigLoaded(int source)
      Description copied from interface: PostConfigLoadedListener
      Mostly useful for config post-processing on edge cases.
      Specified by:
      PostConfigLoaded in interface PostConfigLoadedListener
      See Also:
    • onPreConfigSaved

      public void onPreConfigSaved(int source, blue.endless.jankson.JsonObject oldValues, blue.endless.jankson.JsonObject newValues)
      Description copied from interface: PreConfigSavedListener
      New values are already applied, this is so you can revert invalid values or do some config post-processing. Called before config is saved to file. You can modify newValues to modify what is saved to file. This entrypoint is called once for just your mod. Do not use to modify other mod's configs.
      Specified by:
      onPreConfigSaved in interface PreConfigSavedListener
      oldValues - the values that were in the config file BEFORE the new values were applied. !!May be incomplete or empty!!
      newValues - the values that are about to be saved to the config file.
      See Also: