Class AbstractSelectionList<E extends AbstractSelectionList.Entry<E>>
java.lang.Object
net.minecraft.client.gui.components.AbstractWidget
net.minecraft.client.gui.components.AbstractContainerWidget
net.minecraft.client.gui.components.AbstractSelectionList<E>
- All Implemented Interfaces:
- ContainerEventHandler,- GuiEventListener,- Renderable,- TabOrderedElement,- LayoutElement,- NarratableEntry,- NarrationSupplier,- IAbstractWidgetExtension
- Direct Known Subclasses:
- ContainerObjectSelectionList,- ObjectSelectionList
public abstract class AbstractSelectionList<E extends AbstractSelectionList.Entry<E>>
extends AbstractContainerWidget
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionprotected static class(package private) classNested classes/interfaces inherited from interface net.minecraft.client.gui.narration.NarratableEntryNarratableEntry.NarrationPriority
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprotected booleanprotected intprivate Eprotected final intprotected final Minecraftprivate booleanprivate booleanprivate doubleprotected static final intprivate static final ResourceLocationprivate booleanprivate EFields 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 SummaryConstructorsConstructorDescriptionAbstractSelectionList(Minecraft p_93404_, int p_93405_, int p_93406_, int p_93407_, int p_93408_) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected intprotected voidaddEntryToTop(E p_239858_) (package private) voidbindEntryToSelf(AbstractSelectionList.Entry<E> p_93506_) protected voidcenterScrollOn(E p_93495_) children()protected voidprotected booleanclickedHeader(int p_93431_, int p_93432_) protected voidenableScissor(GuiGraphics p_282811_) protected voidensureVisible(E p_93499_) protected EgetEntry(int p_93501_) protected final EgetEntryAtPosition(double p_93413_, double p_93414_) protected Eprotected intprotected intintprotected intgetRowBottom(int p_93486_) intintprotected intgetRowTop(int p_93512_) intdoubleprotected intbooleanisMouseOver(double p_93479_, double p_93480_) protected booleanisSelectedItem(int p_93504_) protected booleanisValidMouseClick(int p_301202_) booleanmouseClicked(double p_93420_, double p_93421_, int p_93422_) booleanmouseDragged(double p_93424_, double p_93425_, int p_93426_, double p_93427_, double p_93428_) booleanmouseReleased(double p_93491_, double p_93492_, int p_93493_) booleanmouseScrolled(double p_93416_, double p_93417_, double p_93418_, double p_294369_) protected voidnarrateListElementPosition(NarrationElementOutput p_168791_, E p_168792_) protected EnextEntry(ScreenDirection p_265160_) protected EnextEntry(ScreenDirection p_265210_, Predicate<E> p_265604_) protected EnextEntry(ScreenDirection p_265159_, Predicate<E> p_265109_, E p_265379_) protected Eremove(int p_93515_) protected booleanremoveEntry(E p_93503_) protected booleanremoveEntryFromTop(E p_239046_) protected voidrenderDecorations(GuiGraphics p_281477_, int p_93459_, int p_93460_) protected voidrenderHeader(GuiGraphics p_282337_, int p_93444_, int p_93445_) protected voidrenderItem(GuiGraphics p_282205_, int p_238966_, int p_238967_, float p_238968_, int p_238969_, int p_238970_, int p_238971_, int p_238972_, int p_238973_) protected voidrenderList(GuiGraphics p_282079_, int p_239229_, int p_239230_, float p_239231_) protected voidrenderSelection(GuiGraphics p_283589_, int p_240142_, int p_240143_, int p_240144_, int p_240145_, int p_240146_) voidrenderWidget(GuiGraphics p_282708_, int p_283242_, int p_282891_, float p_283683_) protected voidreplaceEntries(Collection<E> p_93470_) private voidscroll(int p_93430_) voidsetFocused(GuiEventListener p_265738_) voidsetRenderBackground(boolean p_93489_) protected voidsetRenderHeader(boolean p_93474_, int p_93475_) voidsetScrollAmount(double p_93411_) voidsetSelected(E p_93462_) protected voidupdateScrollingState(double p_93482_, double p_93483_, int p_93484_) Methods inherited from class net.minecraft.client.gui.components.AbstractContainerWidgetisDragging, isFocused, nextFocusPath, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.components.AbstractWidgetclearFGColor, clicked, createNarrationMessage, defaultButtonNarrationText, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getTooltip, getWidth, getX, getY, isActive, isHovered, isHoveredOrFocused, isValidClickButton, onClick, onDrag, onRelease, playDownSound, render, renderScrollingString, renderScrollingString, renderScrollingString, setAlpha, setFGColor, 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.ContainerEventHandlercharTyped, getChildAt, getCurrentFocusPath, keyPressed, keyReleased, magicalSpecialHackyFocusMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenergetRectangle, mouseMovedMethods 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.TabOrderedElementgetTabOrderGroup
- 
Field Details- 
SCROLLBAR_WIDTHprotected static final int SCROLLBAR_WIDTH- See Also:
 
- 
SCROLLER_SPRITE
- 
minecraft
- 
itemHeightprotected final int itemHeight
- 
children
- 
centerListVerticallyprotected boolean centerListVertically
- 
scrollAmountprivate double scrollAmount
- 
renderHeaderprivate boolean renderHeader
- 
headerHeightprotected int headerHeight
- 
scrollingprivate boolean scrolling
- 
selected
- 
renderBackgroundprivate boolean renderBackground
- 
hovered
 
- 
- 
Constructor Details- 
AbstractSelectionListpublic AbstractSelectionList(Minecraft p_93404_, int p_93405_, int p_93406_, int p_93407_, int p_93408_) 
 
- 
- 
Method Details- 
setRenderHeaderprotected void setRenderHeader(boolean p_93474_, int p_93475_) 
- 
getRowWidthpublic int getRowWidth()
- 
getSelected
- 
setSelected
- 
getFirstElement
- 
setRenderBackgroundpublic void setRenderBackground(boolean p_93489_) 
- 
getFocused- Specified by:
- getFocusedin interface- ContainerEventHandler
- Overrides:
- getFocusedin class- AbstractContainerWidget
 
- 
children
- 
clearEntriesprotected void clearEntries()
- 
replaceEntries
- 
getEntry
- 
addEntry
- 
addEntryToTop
- 
removeEntryFromTop
- 
getItemCountprotected int getItemCount()
- 
isSelectedItemprotected boolean isSelectedItem(int p_93504_) 
- 
getEntryAtPosition
- 
getMaxPositionprotected int getMaxPosition()
- 
clickedHeaderprotected boolean clickedHeader(int p_93431_, int p_93432_) 
- 
renderHeader
- 
renderDecorations
- 
renderWidget- Specified by:
- renderWidgetin class- AbstractWidget
 
- 
enableScissor
- 
centerScrollOn
- 
ensureVisible
- 
scrollprivate void scroll(int p_93430_) 
- 
getScrollAmountpublic double getScrollAmount()
- 
setScrollAmountpublic void setScrollAmount(double p_93411_) 
- 
getMaxScrollpublic int getMaxScroll()
- 
updateScrollingStateprotected void updateScrollingState(double p_93482_, double p_93483_, int p_93484_) 
- 
getScrollbarPositionprotected int getScrollbarPosition()
- 
isValidMouseClickprotected boolean isValidMouseClick(int p_301202_) 
- 
mouseClickedpublic boolean mouseClicked(double p_93420_, double p_93421_, int p_93422_) - Specified by:
- mouseClickedin interface- ContainerEventHandler
- Specified by:
- mouseClickedin interface- GuiEventListener
- Overrides:
- mouseClickedin class- AbstractContainerWidget
 
- 
mouseReleasedpublic boolean mouseReleased(double p_93491_, double p_93492_, int p_93493_) - Specified by:
- mouseReleasedin interface- ContainerEventHandler
- Specified by:
- mouseReleasedin interface- GuiEventListener
- Overrides:
- mouseReleasedin class- AbstractContainerWidget
 
- 
mouseDraggedpublic boolean mouseDragged(double p_93424_, double p_93425_, int p_93426_, double p_93427_, double p_93428_) - Specified by:
- mouseDraggedin interface- ContainerEventHandler
- Specified by:
- mouseDraggedin interface- GuiEventListener
- Overrides:
- mouseDraggedin class- AbstractContainerWidget
 
- 
mouseScrolledpublic boolean mouseScrolled(double p_93416_, double p_93417_, double p_93418_, double p_294369_) 
- 
setFocused- Specified by:
- setFocusedin interface- ContainerEventHandler
- Overrides:
- setFocusedin class- AbstractContainerWidget
 
- 
isMouseOverpublic boolean isMouseOver(double p_93479_, double p_93480_) - Specified by:
- isMouseOverin interface- GuiEventListener
- Overrides:
- isMouseOverin class- AbstractWidget
 
- 
renderList
- 
renderItemprotected void renderItem(GuiGraphics p_282205_, int p_238966_, int p_238967_, float p_238968_, int p_238969_, int p_238970_, int p_238971_, int p_238972_, int p_238973_) 
- 
renderSelectionprotected void renderSelection(GuiGraphics p_283589_, int p_240142_, int p_240143_, int p_240144_, int p_240145_, int p_240146_) 
- 
getRowLeftpublic int getRowLeft()
- 
getRowRightpublic int getRowRight()
- 
getRowTopprotected int getRowTop(int p_93512_) 
- 
getRowBottomprotected int getRowBottom(int p_93486_) 
- 
narrationPriority- Specified by:
- narrationPriorityin interface- NarratableEntry
- Overrides:
- narrationPriorityin class- AbstractWidget
 
- 
remove
- 
removeEntry
- 
getHovered
- 
bindEntryToSelf
- 
narrateListElementPosition
 
-