Class InputControlHandlers.NumberRangeHandler.SliderImpl
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractWidget.WithInactiveMessage
net.minecraft.client.gui.components.AbstractSliderButton
net.minecraft.client.gui.screens.dialog.input.InputControlHandlers.NumberRangeHandler.SliderImpl
- All Implemented Interfaces:
GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier
- Enclosing class:
InputControlHandlers.NumberRangeHandler
private static class InputControlHandlers.NumberRangeHandler.SliderImpl
extends AbstractSliderButton
-
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
ConstructorsModifierConstructorDescriptionprivateSliderImpl(NumberRangeInput input, double initialSliderValue) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprivate static ComponentcomputeMessage(NumberRangeInput input, double sliderValue) floatprivate static floatscaledValue(NumberRangeInput input, double sliderValue) private static StringsliderValueToString(NumberRangeInput input, double sliderValue) protected voidprivate static StringvalueToString(float v) 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
-
input
-
-
Constructor Details
-
SliderImpl
-
-
Method Details
-
updateMessage
protected void updateMessage()- Specified by:
updateMessagein classAbstractSliderButton
-
applyValue
protected void applyValue()- Specified by:
applyValuein classAbstractSliderButton
-
stringValueToSend
-
floatValueToSend
public float floatValueToSend() -
scaledValue
-
sliderValueToString
-
computeMessage
-
valueToString
-