Klasse BundleConfigSpec

java.lang.Object
de.luckymcdev.foundryengine.common.bundle.config.BundleConfigSpec

public class BundleConfigSpec extends Object
  • Konstruktordetails

    • BundleConfigSpec

      public BundleConfigSpec()
  • Methodendetails

    • defineBoolean

      public ConfigValue<Boolean> defineBoolean(String key, boolean defaultValue, @Nullable String comment)
      If you call this with comment = null, call the other method without the comment param.
    • defineBoolean

      public ConfigValue<Boolean> defineBoolean(String key, boolean defaultValue)
    • defineInt

      public ConfigValue<Integer> defineInt(String key, int defaultValue, int minValue, int maxValue, @Nullable String comment)
      If you call this with comment = null, call the other method without the comment param.
    • defineInt

      public ConfigValue<Integer> defineInt(String key, int defaultValue, int minValue, int maxValue)
    • defineDouble

      public ConfigValue<Double> defineDouble(String key, double defaultValue, double minValue, double maxValue, @Nullable String comment)
      If you call this with comment = null, call the other method without the comment param.
    • defineDouble

      public ConfigValue<Double> defineDouble(String key, double defaultValue, double minValue, double maxValue)
    • defineString

      public ConfigValue<String> defineString(String key, String defaultValue, @Nullable String comment)
      If you call this with comment = null, call the other method without the comment param.
    • defineString

      public ConfigValue<String> defineString(String key, String defaultValue)
    • build

      @Internal public net.neoforged.neoforge.common.ModConfigSpec build()