Class AbstractSelectionList<E extends AbstractSelectionList.Entry<E>>
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.components.AbstractSelectionList<E>
- All Implemented Interfaces:
- ContainerEventHandler,- GuiEventListener,- Renderable,- TabOrderedElement,- NarratableEntry,- NarrationSupplier
- Direct Known Subclasses:
- ContainerObjectSelectionList,- ObjectSelectionList
public abstract class AbstractSelectionList<E extends AbstractSelectionList.Entry<E>>
extends AbstractContainerEventHandler
implements Renderable, NarratableEntry
- 
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 intprotected intprivate Eprotected final intprotected final Minecraftprivate booleanprivate booleanprivate doubleprotected static final intprivate static final ResourceLocationprivate booleanprivate Eprotected intprotected intprotected intprotected intprotected intFields 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_, int p_93409_) 
- 
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 voidclickedHeader(int p_93431_, int p_93432_) protected voidenableScissor(GuiGraphics p_282811_) protected voidensureVisible(E p_93499_) intprotected EgetEntry(int p_93501_) protected final EgetEntryAtPosition(double p_93413_, double p_93414_) intprotected Eprotected intintgetLeft()protected intintintgetRight()protected intgetRowBottom(int p_93486_) intintprotected intgetRowTop(int p_93512_) intdoubleprotected intintintgetTop()intgetWidth()booleanisMouseOver(double p_93479_, double p_93480_) protected booleanisSelectedItem(int p_93504_) protected booleanisValidMouseClick(int p_299130_) 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_298552_) 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_) voidrender(GuiGraphics p_282708_, int p_283242_, int p_282891_, float p_283683_) 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_) protected voidreplaceEntries(Collection<E> p_93470_) private voidscroll(int p_93430_) voidsetFocused(GuiEventListener p_265738_) voidsetLeftPos(int p_93508_) 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_) voidupdateSize(int p_93438_, int p_93439_, int p_93440_, int p_93441_) Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandlerisDragging, setDraggingMethods 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, isFocused, keyPressed, keyReleased, magicalSpecialHackyFocus, nextFocusPath, setFocusedMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenermouseMovedMethods inherited from interface net.minecraft.client.gui.narration.NarratableEntryisActiveMethods inherited from interface net.minecraft.client.gui.narration.NarrationSupplierupdateNarrationMethods 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
- 
widthprotected int width
- 
heightprotected int height
- 
y0protected int y0
- 
y1protected int y1
- 
x1protected int x1
- 
x0protected int x0
- 
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_, int p_93409_) 
 
- 
- 
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- AbstractContainerEventHandler
 
- 
children- Specified by:
- childrenin interface- ContainerEventHandler
 
- 
clearEntriesprotected void clearEntries()
- 
replaceEntries
- 
getEntry
- 
addEntry
- 
addEntryToTop
- 
removeEntryFromTop
- 
getItemCountprotected int getItemCount()
- 
isSelectedItemprotected boolean isSelectedItem(int p_93504_) 
- 
getEntryAtPosition
- 
updateSizepublic void updateSize(int p_93438_, int p_93439_, int p_93440_, int p_93441_) 
- 
setLeftPospublic void setLeftPos(int p_93508_) 
- 
getMaxPositionprotected int getMaxPosition()
- 
clickedHeaderprotected void clickedHeader(int p_93431_, int p_93432_) 
- 
renderHeader
- 
renderDecorations
- 
render- Specified by:
- renderin interface- Renderable
 
- 
enableScissor
- 
centerScrollOn
- 
ensureVisible
- 
scrollprivate void scroll(int p_93430_) 
- 
getScrollAmountpublic double getScrollAmount()
- 
setScrollAmountpublic void setScrollAmount(double p_93411_) 
- 
getMaxScrollpublic int getMaxScroll()
- 
getScrollBottompublic int getScrollBottom()
- 
updateScrollingStateprotected void updateScrollingState(double p_93482_, double p_93483_, int p_93484_) 
- 
getScrollbarPositionprotected int getScrollbarPosition()
- 
isValidMouseClickprotected boolean isValidMouseClick(int p_299130_) 
- 
mouseClickedpublic boolean mouseClicked(double p_93420_, double p_93421_, int p_93422_) - Specified by:
- mouseClickedin interface- ContainerEventHandler
- Specified by:
- mouseClickedin interface- GuiEventListener
 
- 
mouseReleasedpublic boolean mouseReleased(double p_93491_, double p_93492_, int p_93493_) - Specified by:
- mouseReleasedin interface- ContainerEventHandler
- Specified by:
- mouseReleasedin interface- GuiEventListener
 
- 
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
 
- 
mouseScrolledpublic boolean mouseScrolled(double p_93416_, double p_93417_, double p_93418_, double p_298552_) - Specified by:
- mouseScrolledin interface- ContainerEventHandler
- Specified by:
- mouseScrolledin interface- GuiEventListener
 
- 
setFocused- Specified by:
- setFocusedin interface- ContainerEventHandler
- Overrides:
- setFocusedin class- AbstractContainerEventHandler
 
- 
isMouseOverpublic boolean isMouseOver(double p_93479_, double p_93480_) - Specified by:
- isMouseOverin interface- GuiEventListener
 
- 
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
 
- 
remove
- 
removeEntry
- 
getHovered
- 
bindEntryToSelf
- 
narrateListElementPosition
- 
getRectangle- Specified by:
- getRectanglein interface- GuiEventListener
 
- 
getWidthpublic int getWidth()
- 
getHeightpublic int getHeight()
- 
getToppublic int getTop()
- 
getBottompublic int getBottom()
- 
getLeftpublic int getLeft()
- 
getRightpublic int getRight()
 
-