Class ConfigId<T>
java.lang.Object
cromveil.combatnumbers.config.ConfigId<T>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbooleanbool(ConfigId.Category category, String key, boolean defaultValue) category()enumCycle(ConfigId.Category category, String key, E defaultValue, Function<E, net.minecraft.network.chat.Component> displayFn) floatSlider(ConfigId.Category category, String key, double defaultValue, double min, double max, SliderFormat format) key()kind()doublemax()doublemin()stringCycle(ConfigId.Category category, String key, String defaultValue, Supplier<List<String>> values, boolean allowEmpty) stringCycle(ConfigId.Category category, String key, String defaultValue, Supplier<List<String>> values, Function<String, net.minecraft.network.chat.Component> displayFn, boolean allowEmpty) ConfigOption<?> toOption(ConfigStore store)
-
Method Details
-
bool
-
floatSlider
public static ConfigId<Double> floatSlider(ConfigId.Category category, String key, double defaultValue, double min, double max, SliderFormat format) -
stringCycle
-
stringCycle
-
enumCycle
public static <E extends Enum<E>> ConfigId<E> enumCycle(ConfigId.Category category, String key, E defaultValue, Function<E, net.minecraft.network.chat.Component> displayFn) -
category
-
key
-
kind
-
defaultValue
-
min
public double min() -
max
public double max() -
sliderFormat
-
allowedValuesSupplier
-
allowEmpty
public boolean allowEmpty() -
displayFn
-
toOption
-