Class ConfigMaker

java.lang.Object
io.github.gameking1happy.gk1hcore.config.ConfigMaker

public class ConfigMaker extends Object
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static net.neoforged.neoforge.common.ModConfigSpec.BooleanValue
    makeConfig(@NotNull net.neoforged.neoforge.common.ModConfigSpec.Builder BUILDER, @NotNull String path, boolean defaultValue, @Nullable String comment, @Nullable String translationKey)
     
    static net.neoforged.neoforge.common.ModConfigSpec.DoubleValue
    makeConfig(@NotNull net.neoforged.neoforge.common.ModConfigSpec.Builder BUILDER, @NotNull String path, double defaultValue, double min, double max, @Nullable String comment, @Nullable String translationKey)
     
    static net.neoforged.neoforge.common.ModConfigSpec.IntValue
    makeConfig(@NotNull net.neoforged.neoforge.common.ModConfigSpec.Builder BUILDER, @NotNull String path, int defaultValue, int min, int max, @Nullable String comment, @Nullable String translationKey)
     
    static net.neoforged.neoforge.common.ModConfigSpec.LongValue
    makeConfig(@NotNull net.neoforged.neoforge.common.ModConfigSpec.Builder BUILDER, @NotNull String path, long defaultValue, long min, long max, @Nullable String comment, @Nullable String translationKey)
     
    static <T> net.neoforged.neoforge.common.ModConfigSpec.ConfigValue<T>
    makeConfig(@NotNull net.neoforged.neoforge.common.ModConfigSpec.Builder BUILDER, @NotNull String path, T defaultValue, @Nullable String comment, @Nullable String translationKey)
     
    static <T> net.neoforged.neoforge.common.ModConfigSpec.ConfigValue<T>
    makeConfig(@NotNull net.neoforged.neoforge.common.ModConfigSpec.Builder BUILDER, @NotNull String path, T defaultValue, @NotNull List<T> acceptableValues, @Nullable String comment, @Nullable String translationKey)
     
    static <T> net.neoforged.neoforge.common.ModConfigSpec.ConfigValue<List<? extends T>>
    makeConfig(@NotNull net.neoforged.neoforge.common.ModConfigSpec.Builder BUILDER, @NotNull List<String> path, @NotNull Supplier<List<? extends T>> defaultSupplier, @NotNull Predicate<Object> elementValidator, @Nullable Supplier<T> newElementSupplier, @Nullable net.neoforged.neoforge.common.ModConfigSpec.Range<Integer> sizeRange, @Nullable String comment, @Nullable String translationKey)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • ConfigMaker

      public ConfigMaker()
  • Method Details

    • makeConfig

      public static net.neoforged.neoforge.common.ModConfigSpec.BooleanValue makeConfig(@NotNull @NotNull net.neoforged.neoforge.common.ModConfigSpec.Builder BUILDER, @NotNull @NotNull String path, boolean defaultValue, @Nullable @Nullable String comment, @Nullable @Nullable String translationKey)
    • makeConfig

      public static net.neoforged.neoforge.common.ModConfigSpec.DoubleValue makeConfig(@NotNull @NotNull net.neoforged.neoforge.common.ModConfigSpec.Builder BUILDER, @NotNull @NotNull String path, double defaultValue, double min, double max, @Nullable @Nullable String comment, @Nullable @Nullable String translationKey)
    • makeConfig

      public static net.neoforged.neoforge.common.ModConfigSpec.IntValue makeConfig(@NotNull @NotNull net.neoforged.neoforge.common.ModConfigSpec.Builder BUILDER, @NotNull @NotNull String path, int defaultValue, int min, int max, @Nullable @Nullable String comment, @Nullable @Nullable String translationKey)
    • makeConfig

      public static net.neoforged.neoforge.common.ModConfigSpec.LongValue makeConfig(@NotNull @NotNull net.neoforged.neoforge.common.ModConfigSpec.Builder BUILDER, @NotNull @NotNull String path, long defaultValue, long min, long max, @Nullable @Nullable String comment, @Nullable @Nullable String translationKey)
    • makeConfig

      public static <T> net.neoforged.neoforge.common.ModConfigSpec.ConfigValue<T> makeConfig(@NotNull @NotNull net.neoforged.neoforge.common.ModConfigSpec.Builder BUILDER, @NotNull @NotNull String path, @NotNull T defaultValue, @Nullable @Nullable String comment, @Nullable @Nullable String translationKey)
    • makeConfig

      public static <T> net.neoforged.neoforge.common.ModConfigSpec.ConfigValue<T> makeConfig(@NotNull @NotNull net.neoforged.neoforge.common.ModConfigSpec.Builder BUILDER, @NotNull @NotNull String path, @NotNull T defaultValue, @NotNull @NotNull List<T> acceptableValues, @Nullable @Nullable String comment, @Nullable @Nullable String translationKey)
    • makeConfig

      public static <T> net.neoforged.neoforge.common.ModConfigSpec.ConfigValue<List<? extends T>> makeConfig(@NotNull @NotNull net.neoforged.neoforge.common.ModConfigSpec.Builder BUILDER, @NotNull @NotNull List<String> path, @NotNull @NotNull Supplier<List<? extends T>> defaultSupplier, @NotNull @NotNull Predicate<Object> elementValidator, @Nullable @Nullable Supplier<T> newElementSupplier, @Nullable @Nullable net.neoforged.neoforge.common.ModConfigSpec.Range<Integer> sizeRange, @Nullable @Nullable String comment, @Nullable @Nullable String translationKey)