Class ExperimentsScreen.ScrollArea
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractScrollArea
net.minecraft.client.gui.components.AbstractContainerWidget
net.minecraft.client.gui.screens.worldselection.ExperimentsScreen.ScrollArea
- All Implemented Interfaces:
ContainerEventHandler,GuiEventListener,Renderable,TabOrderedElement,LayoutElement,NarratableEntry,NarrationSupplier,IAbstractWidgetExtension
- Enclosing class:
ExperimentsScreen
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsFields inherited from class net.minecraft.client.gui.components.AbstractScrollArea
SCROLLBAR_WIDTHFields inherited from class net.minecraft.client.gui.components.AbstractWidget
active, alpha, height, isHovered, packedFGColor, UNSET_FG_COLOR, visible, widthFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWidget(AbstractWidget pWidget) List<? extends GuiEventListener> children()protected intgetBorderForArrowNavigation(ScreenDirection p_388582_) getChildAt(double p_94730_, double p_94731_) Returns the first event listener that intersects with the mouse coordinates.Collection<? extends NarratableEntry> booleanmouseClicked(double p_313764_, double p_313832_, int p_313688_) Called when a mouse button is clicked within the GUI element.booleanmouseReleased(double p_313886_, double p_313935_, int p_313751_) Called when a mouse button is released within the GUI element.protected voidrenderWidget(GuiGraphics p_387127_, int p_388038_, int p_386932_, float p_388026_) protected doublevoidsetFocused(GuiEventListener p_387564_) Sets the focus state of the GUI element.voidsetX(int p_388848_) voidsetY(int p_387427_) protected voidupdateWidgetNarration(NarrationElementOutput p_388854_) Methods inherited from class net.minecraft.client.gui.components.AbstractContainerWidget
getFocused, isDragging, isFocused, mouseDragged, nextFocusPath, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.components.AbstractScrollArea
maxScrollAmount, mouseScrolled, onRelease, refreshScrollAmount, renderScrollbar, scrollAmount, scrollbarVisible, scrollBarX, scrollBarY, scrollerHeight, setScrollAmount, updateScrollingMethods inherited from class net.minecraft.client.gui.components.AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, narrationPriority, onClick, onDrag, playButtonClickSound, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getCurrentFocusPath, keyPressed, keyReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, isMouseOver, mouseMovedMethods inherited from interface net.neoforged.neoforge.client.extensions.IAbstractWidgetExtension
onClickMethods inherited from interface net.minecraft.client.gui.layouts.LayoutElement
setPositionMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
children
-
layout
-
-
Constructor Details
-
ScrollArea
-
-
Method Details
-
addWidget
-
contentHeight
protected int contentHeight()- Specified by:
contentHeightin classAbstractScrollArea
-
scrollRate
protected double scrollRate()- Specified by:
scrollRatein classAbstractScrollArea
-
renderWidget
- Specified by:
renderWidgetin classAbstractWidget
-
updateWidgetNarration
- Specified by:
updateWidgetNarrationin classAbstractWidget
-
setFocused
Description copied from interface:ContainerEventHandlerSets the focus state of the GUI element.- Specified by:
setFocusedin interfaceContainerEventHandler- Overrides:
setFocusedin classAbstractContainerWidget- Parameters:
p_387564_- the focused GUI element.
-
getChildAt
Description copied from interface:ContainerEventHandlerReturns the first event listener that intersects with the mouse coordinates. -
mouseClicked
public boolean mouseClicked(double p_313764_, double p_313832_, int p_313688_) Description copied from interface:GuiEventListenerCalled when a mouse button is clicked within the GUI element.- Specified by:
mouseClickedin interfaceContainerEventHandler- Specified by:
mouseClickedin interfaceGuiEventListener- Overrides:
mouseClickedin classAbstractContainerWidget- Parameters:
p_313764_- the X coordinate of the mouse.p_313832_- the Y coordinate of the mouse.p_313688_- the button that was clicked.- Returns:
trueif the event is consumed,falseotherwise.
-
mouseReleased
public boolean mouseReleased(double p_313886_, double p_313935_, int p_313751_) Description copied from interface:GuiEventListenerCalled when a mouse button is released within the GUI element.- Specified by:
mouseReleasedin interfaceContainerEventHandler- Specified by:
mouseReleasedin interfaceGuiEventListener- Overrides:
mouseReleasedin classAbstractContainerWidget- Parameters:
p_313886_- the X coordinate of the mouse.p_313935_- the Y coordinate of the mouse.p_313751_- the button that was released.- Returns:
trueif the event is consumed,falseotherwise.
-
children
-
setX
public void setX(int p_388848_) - Specified by:
setXin interfaceLayoutElement- Overrides:
setXin classAbstractWidget
-
setY
public void setY(int p_387427_) - Specified by:
setYin interfaceLayoutElement- Overrides:
setYin classAbstractWidget
-
getNarratables
-