Class ConfigMaker
java.lang.Object
io.github.gameking1happy.gk1hcore.config.ConfigMaker
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic net.neoforged.neoforge.common.ModConfigSpec.BooleanValuemakeConfig(@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.DoubleValuemakeConfig(@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.IntValuemakeConfig(@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.LongValuemakeConfig(@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)
-
Constructor Details
-
ConfigMaker
public ConfigMaker()
-
-
Method Details
-
makeConfig
-
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)
-