Package net.minecraft.client.settings
Class BooleanOption
- java.lang.Object
-
- net.minecraft.client.AbstractOption
-
- net.minecraft.client.settings.BooleanOption
-
public class BooleanOption extends AbstractOption
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.function.Predicate<GameSettings>
getter
private java.util.function.BiConsumer<GameSettings,java.lang.Boolean>
setter
private ITextComponent
tooltipText
-
Fields inherited from class net.minecraft.client.AbstractOption
AMBIENT_OCCLUSION, ATTACK_INDICATOR, AUTO_JUMP, AUTO_SUGGESTIONS, BIOME_BLEND_RADIUS, CHAT_COLOR, CHAT_DELAY, CHAT_HEIGHT_FOCUSED, CHAT_HEIGHT_UNFOCUSED, CHAT_LINE_SPACING, CHAT_LINKS, CHAT_LINKS_PROMPT, CHAT_OPACITY, CHAT_SCALE, CHAT_VISIBILITY, CHAT_WIDTH, DISCRETE_MOUSE_SCROLL, ENABLE_VSYNC, ENTITY_DISTANCE_SCALING, ENTITY_SHADOWS, FORCE_UNICODE_FONT, FOV, FOV_EFFECTS_SCALE, FRAMERATE_LIMIT, GAMMA, GRAPHICS, GUI_SCALE, HIDE_MATCHED_NAMES, INVERT_MOUSE, MAIN_HAND, MIPMAP_LEVELS, MOUSE_WHEEL_SENSITIVITY, NARRATOR, PARTICLES, RAW_MOUSE_INPUT, REALMS_NOTIFICATIONS, REDUCED_DEBUG_INFO, RENDER_CLOUDS, RENDER_DISTANCE, SCREEN_EFFECTS_SCALE, SENSITIVITY, SHOW_SUBTITLES, SNOOPER_ENABLED, TEXT_BACKGROUND, TEXT_BACKGROUND_OPACITY, TOGGLE_CROUCH, TOGGLE_SPRINT, TOUCHSCREEN, USE_FULLSCREEN, VIEW_BOBBING
-
-
Constructor Summary
Constructors Constructor Description BooleanOption(java.lang.String p_i51167_1_, java.util.function.Predicate<GameSettings> p_i51167_2_, java.util.function.BiConsumer<GameSettings,java.lang.Boolean> p_i51167_3_)
BooleanOption(java.lang.String p_i244779_1_, ITextComponent p_i244779_2_, java.util.function.Predicate<GameSettings> p_i244779_3_, java.util.function.BiConsumer<GameSettings,java.lang.Boolean> p_i244779_4_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Widget
createButton(GameSettings p_216586_1_, int p_216586_2_, int p_216586_3_, int p_216586_4_)
boolean
get(GameSettings p_216741_1_)
ITextComponent
getMessage(GameSettings p_238152_1_)
private void
set(GameSettings p_216744_1_, boolean p_216744_2_)
void
set(GameSettings p_216742_1_, java.lang.String p_216742_2_)
void
toggle(GameSettings p_216740_1_)
-
Methods inherited from class net.minecraft.client.AbstractOption
genericValueLabel, genericValueLabel, getCaption, getTooltip, percentAddValueLabel, percentValueLabel, pixelValueLabel, setTooltip
-
-
-
-
Field Detail
-
getter
private final java.util.function.Predicate<GameSettings> getter
-
setter
private final java.util.function.BiConsumer<GameSettings,java.lang.Boolean> setter
-
tooltipText
@Nullable private final ITextComponent tooltipText
-
-
Constructor Detail
-
BooleanOption
public BooleanOption(java.lang.String p_i51167_1_, java.util.function.Predicate<GameSettings> p_i51167_2_, java.util.function.BiConsumer<GameSettings,java.lang.Boolean> p_i51167_3_)
-
BooleanOption
public BooleanOption(java.lang.String p_i244779_1_, @Nullable ITextComponent p_i244779_2_, java.util.function.Predicate<GameSettings> p_i244779_3_, java.util.function.BiConsumer<GameSettings,java.lang.Boolean> p_i244779_4_)
-
-
Method Detail
-
set
public void set(GameSettings p_216742_1_, java.lang.String p_216742_2_)
-
toggle
public void toggle(GameSettings p_216740_1_)
-
set
private void set(GameSettings p_216744_1_, boolean p_216744_2_)
-
get
public boolean get(GameSettings p_216741_1_)
-
createButton
public Widget createButton(GameSettings p_216586_1_, int p_216586_2_, int p_216586_3_, int p_216586_4_)
- Specified by:
createButton
in classAbstractOption
-
getMessage
public ITextComponent getMessage(GameSettings p_238152_1_)
-
-