Class ModListScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.neoforged.neoforge.client.gui.modlist.ModListScreen
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordprivate classprivate classprivate static enumNested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ModListScreen.ModsList.Entry> (package private) static final intprivate static final Comparator<ModListScreen.ModsList.Entry> private final ConfigurationScreenFactoryprivate ModListScreen.SortTypeprivate @Nullable ModListScreen.ModsListprivate @Nullable ModListScreen.ModInfoPanelprivate @Nullable EqualSpacingLayout(package private) static final intprivate static final int(package private) static final intprivate @Nullable HeaderAndFooterLayoutprivate static final org.slf4j.Loggerprivate final ImmutableList<ModDisplayInfo> private final Pathprivate static final intprivate static final intprivate static final intprivate static final intprivate final VersionCheckResultSupplierFields inherited from class Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateModListScreen(@Nullable Screen lastScreen, ImmutableList<ModDisplayInfo> mods, Path modsFolder, ConfigurationScreenFactory configFactory, VersionCheckResultSupplier versionCheck) -
Method Summary
Modifier and TypeMethodDescriptionstatic ModListScreenprotected voidinit()private @Nullable ModListScreen.ImageDataloadImage(String type, String modId, ImageResource imageResource, boolean blurred) voidonClose()protected voidprivate voidMethods inherited from class Screen
added, addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBackground, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderState, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isInputCaptured, isMouseOver, isPauseScreen, isValidCharacterForName, keyPressed, onFilesDrop, rebuildWidgets, removed, removeWidget, resize, scheduleNarration, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, tick, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface GuiEventListener
capturesInput, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SIDEBAR_CONTROLS_WIDTH
private static final int SIDEBAR_CONTROLS_WIDTH- See Also:
-
SIDEBAR_SORT_BUTTON_WIDTH
private static final int SIDEBAR_SORT_BUTTON_WIDTH- See Also:
-
SIDEBAR_CONTROLS_HEIGHT
private static final int SIDEBAR_CONTROLS_HEIGHT- See Also:
-
SIDEBAR_MODS_LIST_WIDTH
private static final int SIDEBAR_MODS_LIST_WIDTH- See Also:
-
INFO_PANEL_WIDTH
static final int INFO_PANEL_WIDTH- See Also:
-
INFO_PANEL_FRAME_PADDING
private static final int INFO_PANEL_FRAME_PADDING- See Also:
-
ICON_SIZE
static final int ICON_SIZE- See Also:
-
BANNER_HEIGHT
static final int BANNER_HEIGHT- See Also:
-
lastScreen
-
mods
-
modsFolder
-
configFactory
-
versionCheck
-
allEntries
-
currentSort
-
layout
-
fixedSidebarLayout
-
displayList
-
displayPanel
-
search
-
COMPARATOR_BY_NAME
-
-
Constructor Details
-
ModListScreen
private ModListScreen(@Nullable Screen lastScreen, ImmutableList<ModDisplayInfo> mods, Path modsFolder, ConfigurationScreenFactory configFactory, VersionCheckResultSupplier versionCheck)
-
-
Method Details
-
create
-
init
-
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classScreen
-
onClose
-
updateModsList
private void updateModsList() -
loadImage
private @Nullable ModListScreen.ImageData loadImage(String type, String modId, ImageResource imageResource, boolean blurred)
-