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 static final int
SCROLLBAR_MIN_HEIGHT
field_1_677
field_1_677
private static final Identifier
SCROLLER_SPRITE
field_45906
SCROLLER_TEXTURE
private static final Identifier
SCROLLER_BACKGROUND_SPRITE
field_55259
SCROLLER_BACKGROUND_TEXTURE
private final ScrollableWidget$Scrollbar
scrollbarSettings
field_1_678
scrollbar
private double
scrollAmount
field_39497
scrollY
private boolean
scrolling
field_39498
scrollbarDragged

Constructor summary

ModifierConstructor
public (int x, int y, int width, int height, Text message, ScrollableWidget$Scrollbar scrollbar)

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
scrollable()
method_44392()
overflows()
public int
scrollbarWidth()
method_1_643()
getScrollbarWidth()
protected int
scrollerHeight()
method_44394()
getScrollbarThumbHeight()
protected int
scrollBarX()
method_65507()
getScrollbarX()
public int
scrollBarY()
method_65508()
getScrollbarThumbY()
protected void
extractScrollbar(GuiGraphicsExtractor 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 double
scrollRate()
method_44393()
getDeltaYPerScroll()
public static ScrollableWidget$Scrollbar
defaultSettings(int scrollRate)
method_1_642(int arg0)
create(int scrollRate)