Package net.minecraft.client.gui.widget
Class SliderWidget
java.lang.Object
net.minecraft.client.gui.widget.ClickableWidget
net.minecraft.client.gui.widget.SliderWidget
- All Implemented Interfaces:
- Drawable,- Element,- Narratable,- Navigable,- Selectable,- Widget
- Direct Known Subclasses:
- OptionSliderWidget,- RealmsSlotOptionsScreen.SettingsSlider
- Mappings:
- Namespace - Name - named - net/minecraft/client/gui/widget/SliderWidget- intermediary - net/minecraft/class_357- official - foo
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.gui.SelectableSelectable.SelectionType
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprotected static final intprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate booleanprivate static final Identifierprotected doubleFields inherited from class net.minecraft.client.gui.widget.ClickableWidgetactive, alpha, height, hovered, visible, widthFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoidprotected abstract voidprivate Identifierprotected MutableTextprivate IdentifierbooleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.voidonClick(double mouseX, double mouseY) protected voidonDrag(double mouseX, double mouseY, double deltaX, double deltaY) voidonRelease(double mouseX, double mouseY) voidplayDownSound(SoundManager soundManager) voidrenderWidget(DrawContext context, int mouseX, int mouseY, float delta) voidsetFocused(boolean focused) private voidsetValue(double value) private voidsetValueFromMouse(double mouseX) Sets the value from mouse position.protected abstract voidMethods inherited from class net.minecraft.client.gui.widget.ClickableWidgetappendDefaultNarrations, appendNarrations, 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, playClickSound, render, setAlpha, setDimensions, setDimensionsAndPosition, setHeight, setMessage, setNavigationOrder, setTooltip, setTooltipDelay, setWidth, setX, setYMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ElementcharTyped, getBorder, getFocusedPath, keyReleased, mouseMoved, mouseScrolledMethods inherited from interface net.minecraft.client.gui.SelectablegetNarratedPartsMethods inherited from interface net.minecraft.client.gui.widget.WidgetsetPosition
- 
Field Details- 
TEXTURE- Mappings:
- Namespace - Name - Mixin selector - named - TEXTURE- Lnet/minecraft/client/gui/widget/SliderWidget;TEXTURE:Lnet/minecraft/util/Identifier;- intermediary - field_45340- Lnet/minecraft/class_357;field_45340:Lnet/minecraft/class_2960;- official - a- Lfoo;a:Lakv;
 
- 
HIGHLIGHTED_TEXTURE- Mappings:
- Namespace - Name - Mixin selector - named - HIGHLIGHTED_TEXTURE- Lnet/minecraft/client/gui/widget/SliderWidget;HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;- intermediary - field_45341- Lnet/minecraft/class_357;field_45341:Lnet/minecraft/class_2960;- official - d- Lfoo;d:Lakv;
 
- 
HANDLE_TEXTURE- Mappings:
- Namespace - Name - Mixin selector - named - HANDLE_TEXTURE- Lnet/minecraft/client/gui/widget/SliderWidget;HANDLE_TEXTURE:Lnet/minecraft/util/Identifier;- intermediary - field_45342- Lnet/minecraft/class_357;field_45342:Lnet/minecraft/class_2960;- official - e- Lfoo;e:Lakv;
 
- 
HANDLE_HIGHLIGHTED_TEXTURE- Mappings:
- Namespace - Name - Mixin selector - named - HANDLE_HIGHLIGHTED_TEXTURE- Lnet/minecraft/client/gui/widget/SliderWidget;HANDLE_HIGHLIGHTED_TEXTURE:Lnet/minecraft/util/Identifier;- intermediary - field_45343- Lnet/minecraft/class_357;field_45343:Lnet/minecraft/class_2960;- official - f- Lfoo;f:Lakv;
 
- 
field_43054protected static final int field_43054- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_43054- Lnet/minecraft/client/gui/widget/SliderWidget;field_43054:I- intermediary - field_43054- Lnet/minecraft/class_357;field_43054:I- official - b- Lfoo;b:I
 
- 
field_41790private static final int field_41790- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_41790- Lnet/minecraft/client/gui/widget/SliderWidget;field_41790:I- intermediary - field_41790- Lnet/minecraft/class_357;field_41790:I- official - m- Lfoo;m:I
 
- 
field_41789private static final int field_41789- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - field_41789- Lnet/minecraft/client/gui/widget/SliderWidget;field_41789:I- intermediary - field_41789- Lnet/minecraft/class_357;field_41789:I- official - n- Lfoo;n:I
 
- 
valueprotected double value- Mappings:
- Namespace - Name - Mixin selector - named - value- Lnet/minecraft/client/gui/widget/SliderWidget;value:D- intermediary - field_22753- Lnet/minecraft/class_357;field_22753:D- official - c- Lfoo;c:D
 
- 
sliderFocusedprivate boolean sliderFocused- Mappings:
- Namespace - Name - Mixin selector - named - sliderFocused- Lnet/minecraft/client/gui/widget/SliderWidget;sliderFocused:Z- intermediary - field_41796- Lnet/minecraft/class_357;field_41796:Z- official - o- Lfoo;o:Z
 
 
- 
- 
Constructor Details- 
SliderWidget- Mappings:
- Namespace - Name - Mixin selector - named - <init>- Lnet/minecraft/client/gui/widget/SliderWidget;<init>(IIIILnet/minecraft/text/Text;D)V- intermediary - <init>- Lnet/minecraft/class_357;<init>(IIIILnet/minecraft/class_2561;D)V- official - <init>- Lfoo;<init>(IIIILwp;D)V
 
 
- 
- 
Method Details- 
getTexture- Mappings:
- Namespace - Name - Mixin selector - named - getTexture- Lnet/minecraft/client/gui/widget/SliderWidget;getTexture()Lnet/minecraft/util/Identifier;- intermediary - method_52716- Lnet/minecraft/class_357;method_52716()Lnet/minecraft/class_2960;- official - c- Lfoo;c()Lakv;
 
- 
getHandleTexture- Mappings:
- Namespace - Name - Mixin selector - named - getHandleTexture- Lnet/minecraft/client/gui/widget/SliderWidget;getHandleTexture()Lnet/minecraft/util/Identifier;- intermediary - method_52717- Lnet/minecraft/class_357;method_52717()Lnet/minecraft/class_2960;- official - e- Lfoo;e()Lakv;
 
- 
getNarrationMessage- Overrides:
- getNarrationMessagein class- ClickableWidget
- Mappings:
- Namespace - Name - Mixin selector - named - getNarrationMessage- Lnet/minecraft/client/gui/widget/ClickableWidget;getNarrationMessage()Lnet/minecraft/text/MutableText;- intermediary - method_25360- Lnet/minecraft/class_339;method_25360()Lnet/minecraft/class_5250;- official - d- Lfos;d()Lxd;
 
- 
appendClickableNarrations- Specified by:
- appendClickableNarrationsin class- ClickableWidget
- Mappings:
- Namespace - Name - Mixin selector - named - appendClickableNarrations- Lnet/minecraft/client/gui/widget/ClickableWidget;appendClickableNarrations(Lnet/minecraft/client/gui/screen/narration/NarrationMessageBuilder;)V- intermediary - method_47399- Lnet/minecraft/class_339;method_47399(Lnet/minecraft/class_6382;)V- official - a- Lfos;a(Lfsr;)V
 
- 
renderWidget- Specified by:
- renderWidgetin class- ClickableWidget
- 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- Lfos;b(Lfof;IIF)V
 
- 
onClickpublic void onClick(double mouseX, double mouseY) - Overrides:
- onClickin class- ClickableWidget
- Mappings:
- Namespace - Name - Mixin selector - named - onClick- Lnet/minecraft/client/gui/widget/ClickableWidget;onClick(DD)V- intermediary - method_25348- Lnet/minecraft/class_339;method_25348(DD)V- official - a- Lfos;a(DD)V
 
- 
setFocusedpublic void setFocused(boolean focused) - Specified by:
- setFocusedin interface- Element
- Overrides:
- setFocusedin class- ClickableWidget
- Mappings:
- Namespace - Name - Mixin selector - named - setFocused- Lnet/minecraft/client/gui/Element;setFocused(Z)V- intermediary - method_25365- Lnet/minecraft/class_364;method_25365(Z)V- official - a- Lfqr;a(Z)V
 
- 
keyPressedpublic boolean keyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Parameters:
- keyCode- the named key code of the event as described in the- GLFWclass
- scanCode- the unique/platform-specific scan code of the keyboard input
- modifiers- a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - keyPressed- Lnet/minecraft/client/gui/Element;keyPressed(III)Z- intermediary - method_25404- Lnet/minecraft/class_364;method_25404(III)Z- official - a- Lfqr;a(III)Z
 
- 
setValueFromMouseprivate void setValueFromMouse(double mouseX) Sets the value from mouse position.The value will be calculated from the position and the width of this slider. - See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - setValueFromMouse- Lnet/minecraft/client/gui/widget/SliderWidget;setValueFromMouse(D)V- intermediary - method_25345- Lnet/minecraft/class_357;method_25345(D)V- official - a- Lfoo;a(D)V
 
- 
setValueprivate void setValue(double value) - Parameters:
- value- the new value; will be clamped to- [0, 1]
- Mappings:
- Namespace - Name - Mixin selector - named - setValue- Lnet/minecraft/client/gui/widget/SliderWidget;setValue(D)V- intermediary - method_25347- Lnet/minecraft/class_357;method_25347(D)V- official - b- Lfoo;b(D)V
 
- 
onDragprotected void onDrag(double mouseX, double mouseY, double deltaX, double deltaY) - Overrides:
- onDragin class- ClickableWidget
- Mappings:
- Namespace - Name - Mixin selector - named - onDrag- Lnet/minecraft/client/gui/widget/ClickableWidget;onDrag(DDDD)V- intermediary - method_25349- Lnet/minecraft/class_339;method_25349(DDDD)V- official - b- Lfos;b(DDDD)V
 
- 
playDownSound- Overrides:
- playDownSoundin class- ClickableWidget
- Mappings:
- Namespace - Name - Mixin selector - named - playDownSound- Lnet/minecraft/client/gui/widget/ClickableWidget;playDownSound(Lnet/minecraft/client/sound/SoundManager;)V- intermediary - method_25354- Lnet/minecraft/class_339;method_25354(Lnet/minecraft/class_1144;)V- official - a- Lfos;a(Lhjw;)V
 
- 
onReleasepublic void onRelease(double mouseX, double mouseY) - Overrides:
- onReleasein class- ClickableWidget
- Mappings:
- Namespace - Name - Mixin selector - named - onRelease- Lnet/minecraft/client/gui/widget/ClickableWidget;onRelease(DD)V- intermediary - method_25357- Lnet/minecraft/class_339;method_25357(DD)V- official - b- Lfos;b(DD)V
 
- 
updateMessageprotected abstract void updateMessage()- 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- Lfoo;b()V
 
- 
applyValueprotected abstract void applyValue()- 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- Lfoo;a()V
 
 
-