Class ModListScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class ModListScreen extends Screen
  • Field Details

    • LOGGER

      private static final org.apache.logging.log4j.Logger LOGGER
    • PADDING

      private static final int PADDING
      See Also:
    • parentScreen

      private Screen parentScreen
    • modList

      private ModListWidget modList
    • modInfo

      private ModListScreen.InfoPanel modInfo
    • selected

      private ModListWidget.ModEntry selected
    • listWidth

      private int listWidth
    • mods

      private List<net.minecraftforge.forgespi.language.IModInfo> mods
    • unsortedMods

      private final List<net.minecraftforge.forgespi.language.IModInfo> unsortedMods
    • configButton

      private Button configButton
    • openModsFolderButton

      private Button openModsFolderButton
    • doneButton

      private Button doneButton
    • buttonMargin

      private int buttonMargin
    • numButtons

      private int numButtons
    • lastFilterText

      private String lastFilterText
    • sorted

      private boolean sorted
    • sortType

      private ModListScreen.SortType sortType
  • Constructor Details

    • ModListScreen

      public ModListScreen(Screen parentScreen)
  • Method Details

    • stripControlCodes

      private static String stripControlCodes(String value)
    • init

      public void init()
      Overrides:
      init in class Screen
    • displayModConfig

      private void displayModConfig()
    • tick

      public void tick()
      Overrides:
      tick in class Screen
    • 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

      private void resortMods(ModListScreen.SortType newSort)
    • render

      public void render(GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • getMinecraftInstance

      public Minecraft getMinecraftInstance()
    • getFontRenderer

      public Font getFontRenderer()
    • setSelected

      public void setSelected(ModListWidget.ModEntry entry)
    • updateCache

      private void updateCache()
    • resize

      public void resize(Minecraft mc, int width, int height)
      Overrides:
      resize in class Screen
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen