Class ModListScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class ModListScreen extends Screen
  • Field Details

  • 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<ModContainer,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)
      Description copied from class: Screen
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      guiGraphics - the GuiGraphics object used for rendering.
      mouseX - the x-coordinate of the mouse cursor.
      mouseY - the y-coordinate of the mouse cursor.
      partialTick - the partial tick time.
    • 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
    • handleClickEvent

      protected void handleClickEvent(Minecraft minecraft, ClickEvent clickEvent)
      Overrides:
      handleClickEvent in class Screen