net.minecraft.client.gui.widget

public abstract class ScrollableWidget

extends ClickableWidget

All mapped superinterfaces:

Widget, Drawable, Element, Navigable, Selectable, Narratable

net.minecraft.client.gui.components.AbstractScrollArea
net.minecraft.class_7528
net.minecraft.client.gui.widget.ScrollableWidget

Field summary

Modifier and TypeField
public static final int
SCROLLBAR_WIDTH
field_55258
SCROLLBAR_WIDTH
private double
scrollAmount
field_39497
scrollY
private static final Identifier
SCROLLER_SPRITE
field_45906
SCROLLER_TEXTURE
private static final Identifier
SCROLLER_BACKGROUND_SPRITE
field_55259
SCROLLER_BACKGROUND_TEXTURE
private boolean
scrolling
field_39498
scrollbarDragged

Constructor summary

ModifierConstructor
public (int x, int y, int width, int height, Text message)

Method summary

Modifier and TypeMethod
public boolean
mouseScrolled(double mx, double my, double scrollX, double scrollY)
method_25401(double arg0, double arg1, double arg2, double arg3)
mouseScrolled(double arg0, double arg1, double arg2, double arg3)
public boolean
mouseDragged(MouseButtonEvent event, double dx, double dy)
method_25403(class_11909 arg0, double arg1, double arg2)
mouseDragged(Click arg0, double arg1, double arg2)
public void
onRelease(MouseButtonEvent event)
method_25357(class_11909 arg0)
onRelease(Click arg0)
public double
scrollAmount()
method_44387()
getScrollY()
public void
setScrollAmount(double scrollAmount)
method_44382(double arg0)
setScrollY(double scrollY)
public boolean
updateScrolling(MouseButtonEvent event)
method_65505(class_11909 arg0)
checkScrollbarDragged(Click click)
protected boolean
isOverScrollbar(double x, double y)
method_74038(double arg0, double arg1)
isInScrollbar(double mouseX, double mouseY)
public void
refreshScrollAmount()
method_65506()
refreshScroll()
public int
maxScrollAmount()
method_44390()
getMaxScrollY()
protected boolean
scrollbarVisible()
method_44392()
overflows()
protected int
scrollerHeight()
method_44394()
getScrollbarThumbHeight()
protected int
scrollBarX()
method_65507()
getScrollbarX()
protected int
scrollBarY()
method_65508()
getScrollbarThumbY()
protected void
renderScrollbar(GuiGraphics graphics, int mouseX, int mouseY)
method_44396(class_332 arg0, int arg1, int arg2)
drawScrollbar(DrawContext context, int mouseX, int mouseY)
protected abstract int
contentHeight()
method_44395()
getContentsHeightWithPadding()
protected abstract double
scrollRate()
method_44393()
getDeltaYPerScroll()