Interface ConfigScreenBuilder
public interface ConfigScreenBuilder
Client side only.
-
Method Summary
Modifier and TypeMethodDescriptionaddBoolToggle(String optionTranslationBase, boolean currentValue, boolean defaultValue, Consumer<Boolean> saveFunction) addByteField(String optionTranslationBase, byte currentValue, byte defaultValue, Consumer<Byte> saveFunction) addByteListField(String optionTranslationBase, List<Byte> currentValue, List<Byte> defaultValue, Consumer<List<Byte>> saveFunction) addByteSlider(String optionTranslationBase, byte currentValue, byte defaultValue, Consumer<Byte> saveFunction, byte min, byte max) <T extends net.minecraft.client.gui.screens.Screen & CustomButtonScreen<String>>
CustomButtonBuilder<String> addCustomOptionButton(String optionTranslationBase, String currentValue, String defaultValue, Consumer<String> saveFunction, CustomButtonScreenFactory<String, T> buildOptionScreenFactory) addDoubleField(String optionTranslationBase, double currentValue, double defaultValue, Consumer<Double> saveFunction) addDoubleListField(String optionTranslationBase, List<Double> currentValue, List<Double> defaultValue, Consumer<List<Double>> saveFunction) addDoubleSlider(String optionTranslationBase, double currentValue, double defaultValue, Consumer<Double> saveFunction, double min, double max) <T extends Enum<T>>
OptionBuilder<T> addEnumDropdown(String optionTranslationBase, T currentValue, T defaultValue, T[] dropdownEntries, Consumer<T> saveFunction) addFloatField(String optionTranslationBase, float currentValue, float defaultValue, Consumer<Float> saveFunction) addFloatListField(String optionTranslationBase, List<Float> currentValue, List<Float> defaultValue, Consumer<List<Float>> saveFunction) addFloatSlider(String optionTranslationBase, float currentValue, float defaultValue, Consumer<Float> saveFunction, float min, float max) addIntField(String optionTranslationBase, int currentValue, int defaultValue, Consumer<Integer> saveFunction) addIntListField(String optionTranslationBase, List<Integer> currentValue, List<Integer> defaultValue, Consumer<List<Integer>> saveFunction) addIntSlider(String optionTranslationBase, int currentValue, int defaultValue, Consumer<Integer> saveFunction, int min, int max) addLongField(String optionTranslationBase, long currentValue, long defaultValue, Consumer<Long> saveFunction) addLongListField(String optionTranslationBase, List<Long> currentValue, List<Long> defaultValue, Consumer<List<Long>> saveFunction) addLongSlider(String optionTranslationBase, long currentValue, long defaultValue, Consumer<Long> saveFunction, long min, long max) addShortField(String optionTranslationBase, short currentValue, short defaultValue, Consumer<Short> saveFunction) addShortListField(String optionTranslationBase, List<Short> currentValue, List<Short> defaultValue, Consumer<List<Short>> saveFunction) addShortSlider(String optionTranslationBase, short currentValue, short defaultValue, Consumer<Short> saveFunction, short min, short max) addStringDropdown(String optionTranslationBase, String currentValue, String defaultValue, Iterable<String> dropdownEntries, Consumer<String> saveFunction) addStringField(String optionTranslationBase, String currentValue, String defaultValue, Consumer<String> saveFunction) addStringListField(String optionTranslationBase, List<String> currentValue, List<String> defaultValue, Consumer<List<String>> saveFunction) net.minecraft.client.gui.screens.Screenbuild()voidvoidstartCategory(String translationKey, Object... translationParameters) voidstartSubCategory(String translationKey, Object... translationParameters)
-
Method Details
-
startCategory
-
startSubCategory
-
endSubCategory
void endSubCategory() -
addStringField
-
addStringDropdown
-
addEnumDropdown
<T extends Enum<T>> OptionBuilder<T> addEnumDropdown(String optionTranslationBase, T currentValue, T defaultValue, T[] dropdownEntries, Consumer<T> saveFunction) -
addStringListField
-
addFloatField
NumericOptionBuilder<Float> addFloatField(String optionTranslationBase, float currentValue, float defaultValue, Consumer<Float> saveFunction) -
addFloatSlider
DecimalSliderOptionBuilder<Float> addFloatSlider(String optionTranslationBase, float currentValue, float defaultValue, Consumer<Float> saveFunction, float min, float max) -
addFloatListField
-
addDoubleField
NumericOptionBuilder<Double> addDoubleField(String optionTranslationBase, double currentValue, double defaultValue, Consumer<Double> saveFunction) -
addDoubleSlider
DecimalSliderOptionBuilder<Double> addDoubleSlider(String optionTranslationBase, double currentValue, double defaultValue, Consumer<Double> saveFunction, double min, double max) -
addDoubleListField
-
addLongField
NumericOptionBuilder<Long> addLongField(String optionTranslationBase, long currentValue, long defaultValue, Consumer<Long> saveFunction) -
addLongSlider
OptionBuilder<Long> addLongSlider(String optionTranslationBase, long currentValue, long defaultValue, Consumer<Long> saveFunction, long min, long max) -
addLongListField
-
addIntField
NumericOptionBuilder<Integer> addIntField(String optionTranslationBase, int currentValue, int defaultValue, Consumer<Integer> saveFunction) -
addIntSlider
OptionBuilder<Integer> addIntSlider(String optionTranslationBase, int currentValue, int defaultValue, Consumer<Integer> saveFunction, int min, int max) -
addIntListField
-
addShortField
NumericOptionBuilder<Short> addShortField(String optionTranslationBase, short currentValue, short defaultValue, Consumer<Short> saveFunction) -
addShortSlider
OptionBuilder<Short> addShortSlider(String optionTranslationBase, short currentValue, short defaultValue, Consumer<Short> saveFunction, short min, short max) -
addShortListField
-
addByteField
NumericOptionBuilder<Byte> addByteField(String optionTranslationBase, byte currentValue, byte defaultValue, Consumer<Byte> saveFunction) -
addByteSlider
OptionBuilder<Byte> addByteSlider(String optionTranslationBase, byte currentValue, byte defaultValue, Consumer<Byte> saveFunction, byte min, byte max) -
addByteListField
-
addBoolToggle
OptionBuilder<Boolean> addBoolToggle(String optionTranslationBase, boolean currentValue, boolean defaultValue, Consumer<Boolean> saveFunction) -
addCustomOptionButton
<T extends net.minecraft.client.gui.screens.Screen & CustomButtonScreen<String>> CustomButtonBuilder<String> addCustomOptionButton(String optionTranslationBase, String currentValue, String defaultValue, Consumer<String> saveFunction, CustomButtonScreenFactory<String, T> buildOptionScreenFactory) -
build
net.minecraft.client.gui.screens.Screen build()
-