Package net.minecraftforge.client.gui
Class ModListScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraftforge.client.gui.ModListScreen
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,Renderable
,TabOrderedElement
-
Nested Class Summary
Modifier and TypeClassDescription(package private) class
private static enum
Nested classes/interfaces inherited from class net.minecraft.client.gui.screens.Screen
Screen.NarratableSearchResult
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final int
private Button
private Button
private String
private int
private static final org.slf4j.Logger
private ModListScreen.InfoPanel
private ModListWidget
private List
<net.minecraftforge.forgespi.language.IModInfo> private static final int
private Button
private static final int
private final Screen
private EditBox
private ModListWidget.ModEntry
private boolean
private ModListScreen.SortType
private final List
<net.minecraftforge.forgespi.language.IModInfo> Fields inherited from class net.minecraft.client.gui.screens.Screen
CUBE_MAP, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, PANORAMA, renderables, screenExecutor, title, width
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T extends ObjectSelectionList.Entry<T>>
voidbuildModList
(Consumer<T> modListViewConsumer, Function<net.minecraftforge.forgespi.language.IModInfo, T> newEntry) private void
void
init()
void
onClose()
private void
void
render
(GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick) void
private void
resortMods
(ModListScreen.SortType newSort) void
private static String
stripControlCodes
(String value) void
tick()
private void
Methods inherited from class net.minecraft.client.gui.screens.Screen
added, addRenderableOnly, addRenderableWidget, addWidget, advancePanoramaTime, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearFocus, clearTooltipForNextRenderPass, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderBlurredBackground, renderMenuBackground, renderMenuBackground, renderMenuBackgroundTexture, renderPanorama, renderTransparentBackground, renderWithTooltip, repositionElements, setInitialFocus, setInitialFocus, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, setTooltipForNextRenderPass, shouldCloseOnEsc, shouldNarrateNavigation, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, wrapScreenError
Methods inherited from class net.minecraft.client.gui.components.events.AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocused
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
PADDING
private static final int PADDING- See Also:
-
BUTTON_MARGIN
private static final int BUTTON_MARGIN- See Also:
-
NUM_BUTTONS
private static final int NUM_BUTTONS -
parentScreen
-
modList
-
modInfo
-
selected
-
listWidth
private int listWidth -
mods
-
unsortedMods
-
configButton
-
openModsFolderButton
-
doneButton
-
lastFilterText
-
search
-
sorted
private boolean sorted -
sortType
-
-
Constructor Details
-
ModListScreen
-
-
Method Details
-
stripControlCodes
-
init
public void init() -
displayModConfig
private void displayModConfig() -
tick
public void tick() -
buildModList
public <T extends ObjectSelectionList.Entry<T>> void buildModList(Consumer<T> modListViewConsumer, Function<net.minecraftforge.forgespi.language.IModInfo, T> newEntry) -
reloadMods
private void reloadMods() -
resortMods
-
render
- Specified by:
render
in interfaceRenderable
- Overrides:
render
in classScreen
-
getMinecraftInstance
-
getFontRenderer
-
setSelected
-
updateCache
private void updateCache() -
resize
-
onClose
public void onClose()
-