@Environment(value=CLIENT) public class BooleanOption extends Option
| Modifier and Type | Field and Description |
|---|---|
private Text |
field_26923 |
private Predicate<GameOptions> |
getter |
private BiConsumer<GameOptions,Boolean> |
setter |
AO, ATTACK_INDICATOR, AUTO_JUMP, AUTO_SUGGESTIONS, BIOME_BLEND_RADIUS, CHAT_COLOR, CHAT_DELAY_INSTANT, CHAT_HEIGHT_FOCUSED, CHAT_LINE_SPACING, CHAT_LINKS, CHAT_LINKS_PROMPT, CHAT_OPACITY, CHAT_SCALE, CHAT_WIDTH, CLOUDS, DISCRETE_MOUSE_SCROLL, DISTORTION_EFFECT_SCALE, ENTITY_DISTANCE_SCALING, ENTITY_SHADOWS, field_26924, FORCE_UNICODE_FONT, FOV, FOV_EFFECT_SCALE, 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_DISTANCE, SATURATION, SENSITIVITY, SNEAK_TOGGLED, SNOOPER, SPRINT_TOGGLED, SUBTITLES, TEXT_BACKGROUND, TEXT_BACKGROUND_OPACITY, TOUCHSCREEN, VIEW_BOBBING, VISIBILITY, VSYNC| Constructor and Description |
|---|
BooleanOption(String key,
Predicate<GameOptions> getter,
BiConsumer<GameOptions,Boolean> setter) |
BooleanOption(String string,
Text text,
Predicate<GameOptions> predicate,
BiConsumer<GameOptions,Boolean> biConsumer) |
| Modifier and Type | Method and Description |
|---|---|
AbstractButtonWidget |
createButton(GameOptions options,
int x,
int y,
int width) |
boolean |
get(GameOptions options) |
Text |
getDisplayString(GameOptions options) |
private void |
set(GameOptions options,
boolean value) |
void |
set(GameOptions options,
String value) |
void |
toggle(GameOptions options) |
getDisplayPrefix, getGenericLabel, getGenericLabel, getPercentAdditionLabel, getPercentLabel, getPixelLabel, getTooltip, setTooltipprivate final Predicate<GameOptions> getter
private final BiConsumer<GameOptions,Boolean> setter
public BooleanOption(String key, Predicate<GameOptions> getter, BiConsumer<GameOptions,Boolean> setter)
public BooleanOption(String string, @Nullable Text text, Predicate<GameOptions> predicate, BiConsumer<GameOptions,Boolean> biConsumer)
public void set(GameOptions options, String value)
public void toggle(GameOptions options)
private void set(GameOptions options, boolean value)
public boolean get(GameOptions options)
public AbstractButtonWidget createButton(GameOptions options, int x, int y, int width)
createButton in class Optionpublic Text getDisplayString(GameOptions options)