Class RealmsSlotOptionsScreen.SettingsSlider
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractWidget.WithInactiveMessage
net.minecraft.client.gui.components.AbstractSliderButton
com.mojang.realmsclient.gui.screens.configuration.RealmsSlotOptionsScreen.SettingsSlider
- All Implemented Interfaces:
GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier
- Enclosing class:
RealmsSlotOptionsScreen
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractWidget
AbstractWidget.WithInactiveMessageNested classes/interfaces inherited from interface NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsFields inherited from class AbstractSliderButton
canChangeValue, DEFAULT_HEIGHT, dragging, HANDLE_WIDTH, TEXT_MARGIN, valueFields inherited from class AbstractWidget
active, alpha, height, isHovered, message, packedFGColor, UNSET_FG_COLOR, visible, width -
Constructor Summary
ConstructorsConstructorDescriptionSettingsSlider(int x, int y, int width, int currentValue, float minValue, float maxValue) -
Method Summary
Methods inherited from class AbstractSliderButton
createNarrationMessage, getHandleSprite, getSprite, keyPressed, onClick, onDrag, onRelease, playDownSound, renderWidget, setFocused, setValue, updateWidgetNarrationMethods inherited from class AbstractWidget.WithInactiveMessage
defaultInactiveMessage, getMessage, setMessageMethods inherited from class AbstractWidget
clearFGColor, defaultButtonNarrationText, getAlpha, getBottom, getFGColor, getHeight, getRectangle, getRight, getTabOrderGroup, getWidth, getX, getY, handleCursor, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, mouseClicked, mouseDragged, mouseReleased, narrationPriority, nextFocusPath, playButtonClickSound, render, renderScrollingStringOverContents, setAlpha, setFGColor, setHeight, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface GuiEventListener
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyReleased, mouseMoved, mouseScrolled, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface NarratableEntry
getNarratables
-
Field Details
-
minValue
private final double minValue -
maxValue
private final double maxValue
-
-
Constructor Details
-
SettingsSlider
public SettingsSlider(int x, int y, int width, int currentValue, float minValue, float maxValue)
-
-
Method Details
-
applyValue
public void applyValue()- Specified by:
applyValuein classAbstractSliderButton
-
updateMessage
protected void updateMessage()- Specified by:
updateMessagein classAbstractSliderButton
-