Class ModListScreen
java.lang.Object
net.minecraft.client.gui.AbstractGui
net.minecraft.client.gui.FocusableGui
net.minecraft.client.gui.screen.Screen
net.minecraftforge.fml.client.gui.screen.ModListScreen
- All Implemented Interfaces:
IGuiEventListener,INestedGuiEventHandler,IRenderable,IScreen
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) classprivate static enum -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate Buttonprivate Stringprivate intprivate static final org.apache.logging.log4j.Loggerprivate ModListScreen.InfoPanelprivate ModListWidgetprivate intprivate Buttonprivate static final intprivate Screenprivate TextFieldWidgetprivate ModListWidget.ModEntryprivate booleanprivate ModListScreen.SortTypeFields inherited from class net.minecraft.client.gui.screen.Screen
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, widthFields inherited from class net.minecraft.client.gui.AbstractGui
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends ExtendedList.AbstractListEntry<T>>
voidbuildModList(Consumer<T> modListViewConsumer, Function<ModInfo, T> newEntry) private voidvoidinit()voidonClose()private voidvoidrender(MatrixStack mStack, int mouseX, int mouseY, float partialTicks) voidprivate voidresortMods(ModListScreen.SortType newSort) voidprivate static StringstripControlCodes(String value) voidtick()private voidMethods inherited from class net.minecraft.client.gui.screen.Screen
addButton, addWidget, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, onFilesDrop, removed, renderBackground, renderBackground, renderComponentHoverEffect, renderComponentTooltip, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderToolTip, renderWrappedToolTip, sendMessage, sendMessage, shouldCloseOnEsc, wrapScreenErrorMethods inherited from class net.minecraft.client.gui.FocusableGui
getFocused, isDragging, setDragging, setFocusedMethods inherited from class net.minecraft.client.gui.AbstractGui
blit, blit, blit, blit, blit, blitOutlineBlack, drawCenteredString, drawCenteredString, drawString, drawString, fill, fillGradient, fillGradient, getBlitOffset, hLine, setBlitOffset, vLineMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.IGuiEventListener
mouseMovedMethods inherited from interface net.minecraft.client.gui.INestedGuiEventHandler
changeFocus, charTyped, getChildAt, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
-
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
-
buttonMargin
private int buttonMargin -
numButtons
private int numButtons -
lastFilterText
-
search
-
sorted
private boolean sorted -
sortType
-
-
Constructor Details
-
ModListScreen
- Parameters:
parentScreen-
-
-
Method Details
-
stripControlCodes
-
init
public void init() -
displayModConfig
private void displayModConfig() -
tick
public void tick() -
buildModList
public <T extends ExtendedList.AbstractListEntry<T>> void buildModList(Consumer<T> modListViewConsumer, Function<ModInfo, T> newEntry) -
reloadMods
private void reloadMods() -
resortMods
-
render
- Specified by:
renderin interfaceIRenderable- Overrides:
renderin classScreen
-
getMinecraftInstance
-
getFontRenderer
-
setSelected
-
updateCache
private void updateCache() -
resize
-
onClose
public void onClose()
-