Package net.minecraft.client.option
Class SimpleOption.OptionSliderWidgetImpl<N>
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.SliderWidget
net.minecraft.client.gui.widget.OptionSliderWidget
net.minecraft.client.option.SimpleOption.OptionSliderWidgetImpl<N>
- All Implemented Interfaces:
Drawable
,Element
,Narratable
,Navigable
,Selectable
,Widget
- Enclosing class:
SimpleOption<T>
@Environment(CLIENT)
public static final class SimpleOption.OptionSliderWidgetImpl<N>
extends OptionSliderWidget
- Mappings:
Namespace Name named net/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl
intermediary net/minecraft/class_7172$class_7175
official ffk$i
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
Modifier and TypeFieldDescriptionprivate final SimpleOption.SliderCallbacks
<N> private final SimpleOption
<N> private final boolean
private final SimpleOption.TooltipFactory
<N> Fields inherited from class net.minecraft.client.gui.widget.OptionSliderWidget
options
Fields inherited from class net.minecraft.client.gui.widget.SliderWidget
field_43054, value
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, height, hovered, visible, width
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorDescriptionOptionSliderWidgetImpl
(GameOptions options, int x, int y, int width, int height, SimpleOption<N> option, SimpleOption.SliderCallbacks<N> callbacks, SimpleOption.TooltipFactory<N> tooltipFactory, Consumer<N> changeCallback, boolean shouldApplyImmediately) -
Method Summary
Modifier and TypeMethodDescriptionvoid
protected void
void
renderWidget
(DrawContext context, int mouseX, int mouseY, float delta) protected void
Methods inherited from class net.minecraft.client.gui.widget.SliderWidget
appendClickableNarrations, getNarrationMessage, keyPressed, onClick, onDrag, onRelease, playDownSound, setFocused
Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, drawScrollableText, drawScrollableText, drawScrollableText, forEachChild, getBottom, getHeight, getMessage, getNarrationMessage, getNavigationFocus, getNavigationOrder, getNavigationPath, getRight, getTooltip, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isSelected, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, render, setAlpha, setDimensions, setDimensionsAndPosition, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setY
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.Element
charTyped, getFocusedPath, keyReleased, mouseMoved, mouseScrolled
Methods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
option
- Mappings:
Namespace Name Mixin selector named option
Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;option:Lnet/minecraft/client/option/SimpleOption;
intermediary field_37872
Lnet/minecraft/class_7172$class_7175;field_37872:Lnet/minecraft/class_7172;
official d
Lffk$i;d:Lffk;
-
callbacks
- Mappings:
Namespace Name Mixin selector named callbacks
Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;callbacks:Lnet/minecraft/client/option/SimpleOption$SliderCallbacks;
intermediary field_37873
Lnet/minecraft/class_7172$class_7175;field_37873:Lnet/minecraft/class_7172$class_7176;
official e
Lffk$i;e:Lffk$k;
-
tooltipFactory
- Mappings:
Namespace Name Mixin selector named tooltipFactory
Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;tooltipFactory:Lnet/minecraft/client/option/SimpleOption$TooltipFactory;
intermediary field_37874
Lnet/minecraft/class_7172$class_7175;field_37874:Lnet/minecraft/class_7172$class_7277;
official f
Lffk$i;f:Lffk$l;
-
changeCallback
- Mappings:
Namespace Name Mixin selector named changeCallback
Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;changeCallback:Ljava/util/function/Consumer;
intermediary field_41334
Lnet/minecraft/class_7172$class_7175;field_41334:Ljava/util/function/Consumer;
official m
Lffk$i;m:Ljava/util/function/Consumer;
-
timeToApply
- Mappings:
Namespace Name Mixin selector named timeToApply
Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;timeToApply:Ljava/lang/Long;
intermediary field_51513
Lnet/minecraft/class_7172$class_7175;field_51513:Ljava/lang/Long;
official n
Lffk$i;n:Ljava/lang/Long;
-
shouldApplyImmediately
private final boolean shouldApplyImmediately- Mappings:
Namespace Name Mixin selector named shouldApplyImmediately
Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;shouldApplyImmediately:Z
intermediary field_51514
Lnet/minecraft/class_7172$class_7175;field_51514:Z
official o
Lffk$i;o:Z
-
-
Constructor Details
-
OptionSliderWidgetImpl
OptionSliderWidgetImpl(GameOptions options, int x, int y, int width, int height, SimpleOption<N> option, SimpleOption.SliderCallbacks<N> callbacks, SimpleOption.TooltipFactory<N> tooltipFactory, Consumer<N> changeCallback, boolean shouldApplyImmediately) - Mappings:
Namespace Name Mixin selector named <init>
Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;<init>(Lnet/minecraft/client/option/GameOptions;IIIILnet/minecraft/client/option/SimpleOption;Lnet/minecraft/client/option/SimpleOption$SliderCallbacks;Lnet/minecraft/client/option/SimpleOption$TooltipFactory;Ljava/util/function/Consumer;Z)V
intermediary <init>
Lnet/minecraft/class_7172$class_7175;<init>(Lnet/minecraft/class_315;IIIILnet/minecraft/class_7172;Lnet/minecraft/class_7172$class_7176;Lnet/minecraft/class_7172$class_7277;Ljava/util/function/Consumer;Z)V
official <init>
Lffk$i;<init>(Lffl;IIIILffk;Lffk$k;Lffk$l;Ljava/util/function/Consumer;Z)V
-
-
Method Details
-
updateMessage
protected void updateMessage()- Specified by:
updateMessage
in classSliderWidget
- Mappings:
Namespace Name Mixin selector named updateMessage
Lnet/minecraft/client/gui/widget/SliderWidget;updateMessage()V
intermediary method_25346
Lnet/minecraft/class_357;method_25346()V
official b
Lfhc;b()V
-
applyValue
protected void applyValue()- Specified by:
applyValue
in classSliderWidget
- Mappings:
Namespace Name Mixin selector named applyValue
Lnet/minecraft/client/gui/widget/SliderWidget;applyValue()V
intermediary method_25344
Lnet/minecraft/class_357;method_25344()V
official a
Lfhc;a()V
-
applyPendingValue
public void applyPendingValue()- Mappings:
Namespace Name Mixin selector named applyPendingValue
Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;applyPendingValue()V
intermediary method_59868
Lnet/minecraft/class_7172$class_7175;method_59868()V
official c
Lffk$i;c()V
-
renderWidget
- Overrides:
renderWidget
in classSliderWidget
- Mappings:
Namespace Name Mixin selector named renderWidget
Lnet/minecraft/client/gui/widget/ClickableWidget;renderWidget(Lnet/minecraft/client/gui/DrawContext;IIF)V
intermediary method_48579
Lnet/minecraft/class_339;method_48579(Lnet/minecraft/class_332;IIF)V
official b
Lfhe;b(Lfgt;IIF)V
-