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 int
private Button
private Button
private String
private int
private static final org.apache.logging.log4j.Logger
private ModListScreen.InfoPanel
private ModListWidget
private List<net.minecraftforge.forgespi.language.IModInfo>
private int
private Button
private static final int
private 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
BACKGROUND_LOCATION, font, height, minecraft, 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, afterKeyboardAction, afterMouseAction, afterMouseMove, changeFocus, children, clearWidgets, findNarratableWidget, getBackgroundMusic, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleComponentClicked, handleDelayedNarration, hasAltDown, hasControlDown, hasShiftDown, hideWidgets, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, narrationEnabled, onFilesDrop, rebuildWidgets, removed, removeWidget, renderBackground, renderDirtBackground, renderTransparentBackground, renderWithTooltip, repositionElements, 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, magicalSpecialHackyFocus, 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.apache.logging.log4j.Logger LOGGER -
PADDING
private static final int PADDING- See Also:
-
parentScreen
-
modList
-
modInfo
-
selected
-
listWidth
private int listWidth -
mods
-
unsortedMods
-
configButton
-
openModsFolderButton
-
doneButton
-
buttonMargin
private int buttonMargin -
numButtons
private int numButtons -
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()
-