public class BooleanOption extends AbstractOption
Modifier and Type | Field and Description |
---|---|
private java.util.function.Predicate<GameSettings> |
getter |
private java.util.function.BiConsumer<GameSettings,java.lang.Boolean> |
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 |
---|
BooleanOption(java.lang.String translationKeyIn,
java.util.function.Predicate<GameSettings> getter,
java.util.function.BiConsumer<GameSettings,java.lang.Boolean> setter) |
Modifier and Type | Method and Description |
---|---|
Widget |
createWidget(GameSettings options,
int xIn,
int yIn,
int widthIn) |
boolean |
get(GameSettings options) |
java.lang.String |
getText(GameSettings options) |
void |
nextValue(GameSettings options) |
private void |
set(GameSettings options,
boolean valueIn) |
void |
set(GameSettings options,
java.lang.String valueIn) |
getDisplayString
private final java.util.function.Predicate<GameSettings> getter
private final java.util.function.BiConsumer<GameSettings,java.lang.Boolean> setter
public BooleanOption(java.lang.String translationKeyIn, java.util.function.Predicate<GameSettings> getter, java.util.function.BiConsumer<GameSettings,java.lang.Boolean> setter)
public void set(GameSettings options, java.lang.String valueIn)
public void nextValue(GameSettings options)
private void set(GameSettings options, boolean valueIn)
public boolean get(GameSettings options)
public Widget createWidget(GameSettings options, int xIn, int yIn, int widthIn)
createWidget
in class AbstractOption
public java.lang.String getText(GameSettings options)