net.minecraft.client.gui.widget

public abstract class SliderWidget

extends ClickableWidget$InactivityIndicatingWidget

All mapped superinterfaces:

Widget, Drawable, Element, Navigable, Selectable, Narratable

net.minecraft.client.gui.components.AbstractSliderButton
net.minecraft.class_357
net.minecraft.client.gui.widget.SliderWidget

Field summary

Modifier and TypeField
private static final Identifier
SLIDER_SPRITE
field_45340
TEXTURE
private static final Identifier
HIGHLIGHTED_SPRITE
field_45341
HIGHLIGHTED_TEXTURE
private static final Identifier
SLIDER_HANDLE_SPRITE
field_45342
HANDLE_TEXTURE
private static final Identifier
SLIDER_HANDLE_HIGHLIGHTED_SPRITE
field_45343
HANDLE_HIGHLIGHTED_TEXTURE
protected static final int
TEXT_MARGIN
field_43054
field_43054
public static final int
DEFAULT_HEIGHT
field_60708
field_60708
protected static final int
HANDLE_WIDTH
field_41790
field_41790
private static final int
HANDLE_HALF_WIDTH
field_41789
field_41789
protected double
value
field_22753
value
protected boolean
canChangeValue
field_41796
sliderFocused
private boolean
dragging
field_62464
dragging

Constructor summary

ModifierConstructor
public (int x, int y, int width, int height, Text text, double value)

Method summary

Modifier and TypeMethod
private Identifier
getSprite()
method_52716()
getTexture()
private Identifier
getHandleSprite()
method_52717()
getHandleTexture()
protected MutableText
createNarrationMessage()
method_25360()
getNarrationMessage()
public void
updateWidgetNarration(NarrationElementOutput output)
method_47399(class_6382 arg0)
appendClickableNarrations(NarrationMessageBuilder arg0)
public void
extractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
method_48579(class_332 arg0, int arg1, int arg2, float arg3)
renderWidget(DrawContext arg0, int arg1, int arg2, float arg3)
protected void
handleCursor(GuiGraphicsExtractor graphics)
method_76256(class_332 arg0)
setCursor(DrawContext arg0)
public void
onClick(MouseButtonEvent event, boolean doubleClick)
method_25348(class_11909 arg0, boolean arg1)
onClick(Click arg0, boolean arg1)
public void
setFocused(boolean focused)
method_25365(boolean arg0)
setFocused(boolean arg0)
public boolean
keyPressed(KeyEvent event)
method_25404(class_11908 arg0)
keyPressed(KeyInput arg0)
private void
setValueFromMouse(MouseButtonEvent event)
method_25345(class_11909 arg0)
setValueFromMouse(Click click)
protected void
setValue(double newValue)
method_25347(double arg0)
setValue(double value)
protected void
onDrag(MouseButtonEvent event, double dx, double dy)
method_25349(class_11909 arg0, double arg1, double arg2)
onDrag(Click arg0, double arg1, double arg2)
public void
playDownSound(SoundManager soundManager)
method_25354(class_1144 arg0)
playDownSound(SoundManager arg0)
public void
onRelease(MouseButtonEvent event)
method_25357(class_11909 arg0)
onRelease(Click arg0)
protected abstract void
updateMessage()
method_25346()
updateMessage()
protected abstract void
applyValue()
method_25344()
applyValue()