Interface PreConfigSavedListener


public interface PreConfigSavedListener
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onPreConfigSaved(blue.endless.jankson.JsonObject oldValues, blue.endless.jankson.JsonObject newValues)
    New values are already applied, this is so you can revert invalid values or do some config post-processing.
  • Method Details

    • onPreConfigSaved

      void onPreConfigSaved(blue.endless.jankson.JsonObject oldValues, blue.endless.jankson.JsonObject newValues)
      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.
      Parameters:
      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.