public class IteratableOption extends AbstractOption
Modifier and Type | Field and Description |
---|---|
private java.util.function.BiFunction<GameSettings,IteratableOption,java.lang.String> |
getter |
private java.util.function.BiConsumer<GameSettings,java.lang.Integer> |
setter |
ACCESSIBILITY_TEXT_BACKGROUND, ACCESSIBILITY_TEXT_BACKGROUND_OPACITY, AO, ATTACK_INDICATOR, AUTO_JUMP, AUTO_SUGGEST_COMMANDS, BIOME_BLEND_RADIUS, CHAT_COLOR, CHAT_HEIGHT_FOCUSED, CHAT_HEIGHT_UNFOCUSED, CHAT_LINKS, CHAT_LINKS_PROMPT, CHAT_OPACITY, CHAT_SCALE, CHAT_VISIBILITY, CHAT_WIDTH, DISCRETE_MOUSE_SCROLL, ENTITY_SHADOWS, FORCE_UNICODE_FONT, FOV, FRAMERATE_LIMIT, FULLSCREEN, GAMMA, GRAPHICS, GUI_SCALE, INVERT_MOUSE, MAIN_HAND, MIPMAP_LEVELS, MOUSE_WHEEL_SENSITIVITY, NARRATOR, PARTICLES, RAW_MOUSE_INPUT, REALMS_NOTIFICATIONS, REDUCED_DEBUG_INFO, RENDER_CLOUDS, RENDER_DISTANCE, SENSITIVITY, SHOW_SUBTITLES, SNEAK, SNOOPER, SPRINT, TOUCHSCREEN, VIEW_BOBBING, VSYNC
Constructor and Description |
---|
IteratableOption(java.lang.String translationKeyIn,
java.util.function.BiConsumer<GameSettings,java.lang.Integer> setterIn,
java.util.function.BiFunction<GameSettings,IteratableOption,java.lang.String> getterIn) |
Modifier and Type | Method and Description |
---|---|
Widget |
createWidget(GameSettings options,
int xIn,
int yIn,
int widthIn) |
java.lang.String |
getText(GameSettings options) |
void |
setValueIndex(GameSettings options,
int valueIn) |
getDisplayString
private final java.util.function.BiConsumer<GameSettings,java.lang.Integer> setter
private final java.util.function.BiFunction<GameSettings,IteratableOption,java.lang.String> getter
public IteratableOption(java.lang.String translationKeyIn, java.util.function.BiConsumer<GameSettings,java.lang.Integer> setterIn, java.util.function.BiFunction<GameSettings,IteratableOption,java.lang.String> getterIn)
public void setValueIndex(GameSettings options, int valueIn)
public Widget createWidget(GameSettings options, int xIn, int yIn, int widthIn)
createWidget
in class AbstractOption
public java.lang.String getText(GameSettings options)