Package net.minecraft.client.option
Class SimpleOption.OptionSliderWidgetImpl<N>
java.lang.Object
net.minecraft.client.gui.DrawableHelper
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:
class_8021
,Drawable
,Element
,Narratable
,Selectable
- Enclosing class:
SimpleOption<T>
@Environment(CLIENT)
private static final class SimpleOption.OptionSliderWidgetImpl<N>
extends OptionSliderWidget
- Mappings:
Namespace Name official ejw$i
intermediary net/minecraft/class_7172$class_7175
named net/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.Selectable
Selectable.SelectionType
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final SimpleOption.SliderCallbacks<N>
private final SimpleOption<N>
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
value
Fields inherited from class net.minecraft.client.gui.widget.ClickableWidget
active, alpha, field_41797, height, hovered, visible, WIDGETS_TEXTURE, width
Fields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Fields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL
-
Constructor Summary
ConstructorsConstructorDescriptionOptionSliderWidgetImpl
(GameOptions options, int x, int y, int width, int height, SimpleOption<N> option, SimpleOption.SliderCallbacks<N> callbacks, SimpleOption.TooltipFactory<N> tooltipFactory, Consumer<N> changeCallback) -
Method Summary
Methods inherited from class net.minecraft.client.gui.widget.SliderWidget
appendClickableNarrations, getNarrationMessage, getYImage, keyPressed, method_48203, onClick, onDrag, onRelease, playDownSound, renderBackground, setFocused
Methods inherited from class net.minecraft.client.gui.widget.ClickableWidget
appendDefaultNarrations, appendNarrations, clicked, getHeight, getMessage, getNarrationMessage, getTooltipPositioner, getType, getWidth, getX, getY, isFocused, isHovered, isMouseOver, isNarratable, isValidClickButton, method_48202, method_48205, method_48206, mouseClicked, mouseDragged, mouseReleased, render, renderButton, setAlpha, setMessage, setTooltip, setTooltipDelay, setWidth, setX, setY
Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, method_48196, setZOffset
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.class_8021
method_48229
Methods inherited from interface net.minecraft.client.gui.Element
charTyped, keyReleased, method_48218, mouseMoved, mouseScrolled
-
Field Details
-
option
- Mappings:
Namespace Name Mixin selector official c
Lejw$i;c:Lejw;
intermediary field_37872
Lnet/minecraft/class_7172$class_7175;field_37872:Lnet/minecraft/class_7172;
named option
Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;option:Lnet/minecraft/client/option/SimpleOption;
-
callbacks
- Mappings:
Namespace Name Mixin selector official d
Lejw$i;d:Lejw$k;
intermediary field_37873
Lnet/minecraft/class_7172$class_7175;field_37873:Lnet/minecraft/class_7172$class_7176;
named callbacks
Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;callbacks:Lnet/minecraft/client/option/SimpleOption$SliderCallbacks;
-
tooltipFactory
- Mappings:
Namespace Name Mixin selector official e
Lejw$i;e:Lejw$l;
intermediary field_37874
Lnet/minecraft/class_7172$class_7175;field_37874:Lnet/minecraft/class_7172$class_7277;
named tooltipFactory
Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;tooltipFactory:Lnet/minecraft/client/option/SimpleOption$TooltipFactory;
-
changeCallback
- Mappings:
Namespace Name Mixin selector official f
Lejw$i;f:Ljava/util/function/Consumer;
intermediary field_41334
Lnet/minecraft/class_7172$class_7175;field_41334:Ljava/util/function/Consumer;
named changeCallback
Lnet/minecraft/client/option/SimpleOption$OptionSliderWidgetImpl;changeCallback:Ljava/util/function/Consumer;
-
-
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) - Mappings:
Namespace Name Mixin selector official <init>
Lejw$i;<init>(Lejx;IIIILejw;Lejw$k;Lejw$l;Ljava/util/function/Consumer;)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;)V
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;)V
-
-
Method Details
-
updateMessage
protected void updateMessage()- Specified by:
updateMessage
in classSliderWidget
- Mappings:
Namespace Name Mixin selector official b
Leli;b()V
intermediary method_25346
Lnet/minecraft/class_357;method_25346()V
named updateMessage
Lnet/minecraft/client/gui/widget/SliderWidget;updateMessage()V
-
applyValue
protected void applyValue()- Specified by:
applyValue
in classSliderWidget
- Mappings:
Namespace Name Mixin selector official a
Leli;a()V
intermediary method_25344
Lnet/minecraft/class_357;method_25344()V
named applyValue
Lnet/minecraft/client/gui/widget/SliderWidget;applyValue()V
-