Class ModListScreen.ModsList
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.components.AbstractSelectionList<ModListScreen.ModsList.Entry>
net.minecraft.client.gui.components.ObjectSelectionList<ModListScreen.ModsList.Entry>
net.neoforged.neoforge.client.gui.modlist.ModListScreen.ModsList
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier
- Enclosing class:
ModListScreen
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class AbstractScrollArea
AbstractScrollArea.ScrollbarSettingsNested classes/interfaces inherited from class AbstractWidget
AbstractWidget.WithInactiveMessageNested classes/interfaces inherited from interface NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
Fields inherited from class AbstractSelectionList
centerListVertically, defaultEntryHeight, INWORLD_MENU_LIST_BACKGROUND, minecraftFields inherited from class AbstractScrollArea
SCROLLBAR_WIDTHFields inherited from class AbstractWidget
active, alpha, height, isHovered, message, packedFGColor, UNSET_FG_COLOR, visible, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidintintprotected intvoidsetSelected(@Nullable ModListScreen.ModsList.Entry selectedEntry) Methods inherited from class ObjectSelectionList
nextFocusPath, updateWidgetNarrationMethods inherited from class AbstractSelectionList
addEntry, addEntry, addEntryToTop, addEntryToTop, centerScrollOn, children, clearEntriesExcept, contentHeight, enableScissor, entriesCanBeSelected, extractItem, extractListBackground, extractListItems, extractListSeparators, extractSelection, extractWidgetRenderState, getChildAt, getEntryAtPosition, getFocused, getHovered, getItemCount, getNextY, getRowBottom, getRowRight, getRowTop, getSelected, narrateListElementPosition, narrationPriority, nextEntry, nextEntry, nextEntry, removeEntries, removeEntry, removeEntryFromTop, replaceEntries, scrollToEntry, setFocused, setScrollAmount, sort, swap, updateSize, updateSizeAndPosition, updateSizeAndPositionMethods inherited from class AbstractContainerWidget
isDragging, isFocused, mouseClicked, mouseDragged, mouseReleased, setDragging, setFocusedMethods inherited from class AbstractScrollArea
defaultSettings, extractScrollbar, isOverScrollbar, maxScrollAmount, mouseScrolled, onRelease, refreshScrollAmount, scrollable, scrollAmount, scrollbarWidth, scrollBarY, scrollerHeight, scrollRate, updateScrollingMethods inherited from class AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, extractRenderState, extractScrollingStringOverContents, extractTooltipForNextRenderPass, getAlpha, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getWidth, getX, getY, handleCursor, isActive, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, onClick, onDrag, playButtonClickSound, playDownSound, setAlpha, setFGColor, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getCurrentFocusPath, keyPressed, keyReleased, mouseScrolled, preeditUpdatedMethods inherited from interface GuiEventListener
capturesInput, getRectangle, isMouseOver, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface NarratableEntry
getNarratablesMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Constructor Details
-
ModsList
public ModsList(int height)
-
-
Method Details
-
clearEntries
public void clearEntries()- Overrides:
clearEntriesin classAbstractSelectionList<ModListScreen.ModsList.Entry>
-
getRowLeft
public int getRowLeft()- Overrides:
getRowLeftin classAbstractSelectionList<ModListScreen.ModsList.Entry>
-
getRowWidth
public int getRowWidth()- Overrides:
getRowWidthin classAbstractSelectionList<ModListScreen.ModsList.Entry>
-
scrollBarX
protected int scrollBarX()- Overrides:
scrollBarXin classAbstractSelectionList<ModListScreen.ModsList.Entry>
-
setSelected
- Overrides:
setSelectedin classAbstractSelectionList<ModListScreen.ModsList.Entry>
-