Package net.minecraft.client.gui.widget
Class DoubleOptionSliderWidget
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.AbstractButtonWidget
net.minecraft.client.gui.widget.SliderWidget
net.minecraft.client.gui.widget.OptionSliderWidget
net.minecraft.client.gui.widget.DoubleOptionSliderWidget
- All Implemented Interfaces:
Drawable,Element,OrderableTooltip
@Environment(CLIENT) public class DoubleOptionSliderWidget extends OptionSliderWidget implements OrderableTooltip
-
Field Summary
Fields Modifier and Type Field Description private DoubleOptionoptionFields inherited from class net.minecraft.client.gui.widget.OptionSliderWidget
optionsFields inherited from class net.minecraft.client.gui.widget.SliderWidget
valueFields inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
active, alpha, height, hovered, nextNarration, visible, WIDGETS_LOCATION, width, x, yFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description DoubleOptionSliderWidget(GameOptions gameOptions, int x, int y, int width, int height, DoubleOption option) -
Method Summary
Modifier and Type Method Description protected voidapplyValue()Optional<List<OrderedText>>getOrderedTooltip()protected voidupdateMessage()Methods inherited from class net.minecraft.client.gui.widget.SliderWidget
getNarrationMessage, getYImage, keyPressed, onClick, onDrag, onRelease, playDownSound, renderBgMethods inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
changeFocus, clicked, getHeight, getMessage, getWidth, isFocused, isHovered, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrate, onFocusedChanged, queueNarration, render, renderButton, renderToolTip, setAlpha, setFocused, setMessage, setWidthMethods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffsetMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, keyReleased, mouseMoved, mouseScrolled
-
Field Details
-
option
-
-
Constructor Details
-
DoubleOptionSliderWidget
public DoubleOptionSliderWidget(GameOptions gameOptions, int x, int y, int width, int height, DoubleOption option)
-
-
Method Details
-
applyValue
protected void applyValue()- Specified by:
applyValuein classSliderWidget
-
updateMessage
protected void updateMessage()- Specified by:
updateMessagein classSliderWidget
-
getOrderedTooltip
- Specified by:
getOrderedTooltipin interfaceOrderableTooltip
-