Package net.minecraft.client
Class ProgressOption
java.lang.Object
net.minecraft.client.Option
net.minecraft.client.ProgressOption
- Direct Known Subclasses:
FullscreenResolutionProgressOption
,LogaritmicProgressOption
-
Field Summary
Modifier and TypeFieldDescriptionprotected double
protected double
private BiConsumer<Options,Double>
protected float
private Function<Minecraft,List<FormattedCharSequence>>
private BiFunction<Options,ProgressOption,Component>
Fields inherited from class net.minecraft.client.Option
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, DARK_MOJANG_STUDIOS_BACKGROUND_COLOR, 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, OPTIONS_TOOLTIP_WIDTH, 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
ConstructorDescriptionProgressOption(String p_92211_, double p_92212_, double p_92213_, float p_92214_, Function<Options,Double> p_92215_, BiConsumer<Options,Double> p_92216_, BiFunction<Options,ProgressOption,Component> p_92217_)
ProgressOption(String p_168540_, double p_168541_, double p_168542_, float p_168543_, Function<Options,Double> p_168544_, BiConsumer<Options,Double> p_168545_, BiFunction<Options,ProgressOption,Component> p_168546_, Function<Minecraft,List<FormattedCharSequence>> p_168547_)
-
Method Summary
Modifier and TypeMethodDescriptionprivate double
clamp(double p_92237_)
createButton(Options p_92227_, int p_92228_, int p_92229_, int p_92230_)
double
double
getMessage(Options p_92234_)
double
void
void
setMaxValue(float p_92220_)
double
toPct(double p_92218_)
double
toValue(double p_92231_)
Methods inherited from class net.minecraft.client.Option
genericValueLabel, genericValueLabel, getCaption, percentAddValueLabel, percentValueLabel, pixelValueLabel
-
Field Details
-
steps
protected final float steps -
minValue
protected final double minValue -
maxValue
protected double maxValue -
getter
-
setter
-
toString
-
tooltipSupplier
-
-
Constructor Details
-
ProgressOption
public ProgressOption(String p_168540_, double p_168541_, double p_168542_, float p_168543_, Function<Options,Double> p_168544_, BiConsumer<Options,Double> p_168545_, BiFunction<Options,ProgressOption,Component> p_168546_, Function<Minecraft,List<FormattedCharSequence>> p_168547_) -
ProgressOption
public ProgressOption(String p_92211_, double p_92212_, double p_92213_, float p_92214_, Function<Options,Double> p_92215_, BiConsumer<Options,Double> p_92216_, BiFunction<Options,ProgressOption,Component> p_92217_)
-
-
Method Details
-
createButton
- Specified by:
createButton
in classOption
-
toPct
public double toPct(double p_92218_) -
toValue
public double toValue(double p_92231_) -
clamp
private double clamp(double p_92237_) -
getMinValue
public double getMinValue() -
getMaxValue
public double getMaxValue() -
setMaxValue
public void setMaxValue(float p_92220_) -
set
-
get
-
getMessage
-