public class ModListScreen extends Screen
Modifier and Type | Class and Description |
---|---|
(package private) class |
ModListScreen.InfoPanel |
private static class |
ModListScreen.SortType |
Modifier and Type | Field and Description |
---|---|
private int |
buttonMargin |
private Button |
configButton |
private java.lang.String |
lastFilterText |
private int |
listWidth |
private static org.apache.logging.log4j.Logger |
LOGGER |
private ModListScreen.InfoPanel |
modInfo |
private ModListWidget |
modList |
private java.util.List<ModInfo> |
mods |
private int |
numButtons |
private Button |
openModsFolderButton |
private static int |
PADDING |
private Screen |
parentScreen |
private TextFieldWidget |
search |
private ModListWidget.ModEntry |
selected |
private boolean |
sorted |
private ModListScreen.SortType |
sortType |
private java.util.List<ModInfo> |
unsortedMods |
buttons, children, font, height, itemRenderer, minecraft, passEvents, title, width
BACKGROUND_LOCATION, GUI_ICONS_LOCATION, STATS_ICON_LOCATION
Constructor and Description |
---|
ModListScreen(Screen parentScreen) |
Modifier and Type | Method and Description |
---|---|
<T extends ExtendedList.AbstractListEntry<T>> |
buildModList(java.util.function.Consumer<T> modListViewConsumer,
java.util.function.Function<ModInfo,T> newEntry) |
private void |
displayModConfig() |
FontRenderer |
getFontRenderer() |
Minecraft |
getMinecraftInstance() |
void |
init() |
void |
onClose() |
private void |
reloadMods() |
void |
render(int mouseX,
int mouseY,
float partialTicks) |
void |
resize(Minecraft mc,
int width,
int height) |
private void |
resortMods(ModListScreen.SortType newSort) |
void |
setSelected(ModListWidget.ModEntry entry) |
private static java.lang.String |
stripControlCodes(java.lang.String value) |
void |
tick() |
private void |
updateCache() |
addButton, children, getMinecraft, getNarrationMessage, getTitle, getTooltipFromItem, handleComponentClicked, hasAltDown, hasControlDown, hasShiftDown, init, insertText, isCopy, isCut, isMouseOver, isPaste, isPauseScreen, isSelectAll, isValidCharacterForName, keyPressed, removed, renderBackground, renderBackground, renderComponentHoverEffect, renderDirtBackground, renderTooltip, renderTooltip, renderTooltip, renderTooltip, sendMessage, sendMessage, setSize, shouldCloseOnEsc, wrapScreenError
getFocused, isDragging, setDragging, setFocused
blit, blit, blit, blit, blit, drawCenteredString, drawRightAlignedString, drawString, fill, fill, fillGradient, getBlitOffset, hLine, innerBlit, setBlitOffset, vLine
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
changeFocus, charTyped, func_212932_b, getEventListenerForPos, keyReleased, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setFocusedDefault
mouseMoved
private static final org.apache.logging.log4j.Logger LOGGER
private static final int PADDING
private Screen parentScreen
private ModListWidget modList
private ModListScreen.InfoPanel modInfo
private ModListWidget.ModEntry selected
private int listWidth
private java.util.List<ModInfo> mods
private final java.util.List<ModInfo> unsortedMods
private Button configButton
private Button openModsFolderButton
private int buttonMargin
private int numButtons
private java.lang.String lastFilterText
private TextFieldWidget search
private boolean sorted
private ModListScreen.SortType sortType
public ModListScreen(Screen parentScreen)
parentScreen
- private static java.lang.String stripControlCodes(java.lang.String value)
private void displayModConfig()
public <T extends ExtendedList.AbstractListEntry<T>> void buildModList(java.util.function.Consumer<T> modListViewConsumer, java.util.function.Function<ModInfo,T> newEntry)
private void reloadMods()
private void resortMods(ModListScreen.SortType newSort)
public void render(int mouseX, int mouseY, float partialTicks)
render
in interface IRenderable
render
in class Screen
public Minecraft getMinecraftInstance()
public FontRenderer getFontRenderer()
public void setSelected(ModListWidget.ModEntry entry)
private void updateCache()