Class AbstractScrollWidget
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractScrollWidget
- All Implemented Interfaces:
- GuiEventListener,- Renderable,- TabOrderedElement,- LayoutElement,- NarratableEntry,- NarrationSupplier,- IAbstractWidgetExtension
- Direct Known Subclasses:
- FittingMultiLineTextWidget,- MultiLineEditBox,- TelemetryEventWidget
public abstract class AbstractScrollWidget
extends AbstractWidget
implements Renderable, GuiEventListener
- 
Nested Class SummaryNested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntryNarratableEntry.NarrationPriority
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final WidgetSpritesprivate static final intprivate static final intprivate doubleprivate static final ResourceLocationprivate booleanFields inherited from class net.minecraft.client.gui.components.AbstractWidgetactive, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListenerDOUBLE_CLICK_THRESHOLD_MS
- 
Constructor SummaryConstructorsConstructorDescriptionAbstractScrollWidget(int p_240025_, int p_240026_, int p_240027_, int p_240028_, Component p_240029_) 
- 
Method SummaryModifier and TypeMethodDescriptionprivate intprotected abstract intprotected intprivate intprotected intbooleankeyPressed(int p_276060_, int p_276046_, int p_276030_) booleanmouseClicked(double p_240170_, double p_240171_, int p_240172_) booleanmouseDragged(double p_239639_, double p_239640_, int p_239641_, double p_239642_, double p_239643_) booleanmouseReleased(double p_239063_, double p_239064_, int p_239065_) booleanmouseScrolled(double p_239308_, double p_239309_, double p_239310_, double p_294677_) protected voidrenderBackground(GuiGraphics p_282207_) protected voidrenderBorder(GuiGraphics p_289776_, int p_289792_, int p_289795_, int p_289775_, int p_289762_) protected abstract voidrenderContents(GuiGraphics p_282975_, int p_239199_, int p_239200_, float p_239201_) protected voidrenderDecorations(GuiGraphics p_283178_) private voidrenderScrollBar(GuiGraphics p_282305_) voidrenderWidget(GuiGraphics p_282213_, int p_282468_, int p_282209_, float p_283300_) protected doubleprotected booleanintprotected abstract doubleprotected voidsetScrollAmount(double p_240207_) protected intprotected booleanwithinContentAreaPoint(double p_239607_, double p_239608_) protected booleanwithinContentAreaTopBottom(int p_239943_, int p_239944_) Methods inherited from class net.minecraft.client.gui.components.AbstractWidgetclearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isFocused, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, narrationPriority, nextFocusPath, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setFocused, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, updateWidgetNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenercharTyped, getCurrentFocusPath, getRectangle, isFocused, isMouseOver, keyReleased, mouseMoved, nextFocusPath, setFocusedMethods inherited from interface net.neoforged.neoforge.client.extensions.IAbstractWidgetExtensiononClickMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElementsetPositionMethods inherited from interface net.minecraft.client.gui.components.RenderablerenderMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElementgetTabOrderGroup
- 
Field Details- 
BACKGROUND_SPRITES
- 
SCROLLER_SPRITE
- 
INNER_PADDINGprivate static final int INNER_PADDING- See Also:
 
- 
SCROLL_BAR_WIDTHprivate static final int SCROLL_BAR_WIDTH- See Also:
 
- 
scrollAmountprivate double scrollAmount
- 
scrollingprivate boolean scrolling
 
- 
- 
Constructor Details- 
AbstractScrollWidgetpublic AbstractScrollWidget(int p_240025_, int p_240026_, int p_240027_, int p_240028_, Component p_240029_) 
 
- 
- 
Method Details- 
mouseClickedpublic boolean mouseClicked(double p_240170_, double p_240171_, int p_240172_) - Specified by:
- mouseClickedin interface- GuiEventListener
- Overrides:
- mouseClickedin class- AbstractWidget
 
- 
mouseReleasedpublic boolean mouseReleased(double p_239063_, double p_239064_, int p_239065_) - Specified by:
- mouseReleasedin interface- GuiEventListener
- Overrides:
- mouseReleasedin class- AbstractWidget
 
- 
mouseDraggedpublic boolean mouseDragged(double p_239639_, double p_239640_, int p_239641_, double p_239642_, double p_239643_) - Specified by:
- mouseDraggedin interface- GuiEventListener
- Overrides:
- mouseDraggedin class- AbstractWidget
 
- 
mouseScrolledpublic boolean mouseScrolled(double p_239308_, double p_239309_, double p_239310_, double p_294677_) - Specified by:
- mouseScrolledin interface- GuiEventListener
 
- 
keyPressedpublic boolean keyPressed(int p_276060_, int p_276046_, int p_276030_) - Specified by:
- keyPressedin interface- GuiEventListener
 
- 
renderWidget- Specified by:
- renderWidgetin class- AbstractWidget
 
- 
getScrollBarHeightprivate int getScrollBarHeight()
- 
renderDecorations
- 
innerPaddingprotected int innerPadding()
- 
totalInnerPaddingprotected int totalInnerPadding()
- 
scrollAmountprotected double scrollAmount()
- 
setScrollAmountprotected void setScrollAmount(double p_240207_) 
- 
getMaxScrollAmountprotected int getMaxScrollAmount()
- 
getContentHeightprivate int getContentHeight()
- 
renderBackground
- 
renderBorderprotected void renderBorder(GuiGraphics p_289776_, int p_289792_, int p_289795_, int p_289775_, int p_289762_) 
- 
renderScrollBar
- 
withinContentAreaTopBottomprotected boolean withinContentAreaTopBottom(int p_239943_, int p_239944_) 
- 
withinContentAreaPointprotected boolean withinContentAreaPoint(double p_239607_, double p_239608_) 
- 
scrollbarVisibleprotected boolean scrollbarVisible()
- 
scrollbarWidthpublic int scrollbarWidth()
- 
getInnerHeightprotected abstract int getInnerHeight()
- 
scrollRateprotected abstract double scrollRate()
- 
renderContentsprotected abstract void renderContents(GuiGraphics p_282975_, int p_239199_, int p_239200_, float p_239201_) 
 
-