Class RealmsSlotOptionsScreen.SettingsSlider
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.widget.AbstractButtonWidget
net.minecraft.client.gui.widget.SliderWidget
net.minecraft.client.realms.gui.screen.RealmsSlotOptionsScreen.SettingsSlider
- Enclosing class:
- RealmsSlotOptionsScreen
@Environment(CLIENT) class RealmsSlotOptionsScreen.SettingsSlider extends SliderWidget
-
Field Summary
Fields 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 SettingsSlider(int x, int y, int width, int value, float min, float max) -
Method Summary
Modifier and Type Method Description voidapplyValue()voidonClick(double mouseX, double mouseY)voidonRelease(double mouseX, double mouseY)protected voidupdateMessage()Methods inherited from class net.minecraft.client.gui.widget.SliderWidget
getNarrationMessage, getYImage, keyPressed, onDrag, playDownSound, renderBgMethods inherited from class net.minecraft.client.gui.widget.AbstractButtonWidget
changeFocus, clicked, getHeight, getMessage, getWidth, isFocused, isHovered, isMouseOver, isValidClickButton, method_32602, 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, method_33284, 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
-
min
private final double min -
max
private final double max
-
-
Constructor Details
-
SettingsSlider
public SettingsSlider(int x, int y, int width, int value, float min, float max)
-
-
Method Details
-
applyValue
public void applyValue()- Specified by:
applyValuein classSliderWidget
-
updateMessage
protected void updateMessage()- Specified by:
updateMessagein classSliderWidget
-
onClick
public void onClick(double mouseX, double mouseY)- Overrides:
onClickin classSliderWidget
-
onRelease
public void onRelease(double mouseX, double mouseY)- Overrides:
onReleasein classSliderWidget
-