Package api.config

Class ConfigUtils

java.lang.Object
api.config.ConfigUtils

public abstract class ConfigUtils extends Object
  • Field Details

    • CONFIG_RENDER_OPTIONS

      public static final com.typesafe.config.ConfigRenderOptions CONFIG_RENDER_OPTIONS
  • Constructor Details

    • ConfigUtils

      public ConfigUtils()
  • Method Details

    • readCurrentConfig

      public static com.typesafe.config.Config readCurrentConfig(String modId)
    • parseOldConfig

      public static com.typesafe.config.Config parseOldConfig(String modId)
      Reads the old .properties config, if it exists. The values read will be set for the new config, then the .properties will be renamed to .properties.old
    • getValidValues

      @Nullable protected static @Nullable String getValidValues(double min, double max)
    • getValidValues

      @Nullable protected static @Nullable String getValidValues(int min, int max)
    • getValidValues

      @Nullable protected static @Nullable String getValidValues(long min, long max)
    • finishedLoading

      public static void finishedLoading()
    • checkExists

      protected static boolean checkExists(AddonConfig addonConfig, String path)
      Validate a config option key exists already before adding something post-load