All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class StatsScreen extends Screen
  • Field Details

    • TITLE

      private static final Component TITLE
    • SLOT_SPRITE

      static final Identifier SLOT_SPRITE
    • HEADER_SPRITE

      static final Identifier HEADER_SPRITE
    • SORT_UP_SPRITE

      static final Identifier SORT_UP_SPRITE
    • SORT_DOWN_SPRITE

      static final Identifier SORT_DOWN_SPRITE
    • PENDING_TEXT

      private static final Component PENDING_TEXT
    • NO_VALUE_DISPLAY

      static final Component NO_VALUE_DISPLAY
    • GENERAL_BUTTON

      private static final Component GENERAL_BUTTON
    • ITEMS_BUTTON

      private static final Component ITEMS_BUTTON
    • MOBS_BUTTON

      private static final Component MOBS_BUTTON
    • lastScreen

      protected final Screen lastScreen
    • LIST_WIDTH

      private static final int LIST_WIDTH
      See Also:
    • layout

      final HeaderAndFooterLayout layout
    • tabManager

      private final TabManager tabManager
    • tabNavigationBar

      private @Nullable TabNavigationBar tabNavigationBar
    • stats

      final StatsCounter stats
    • isLoading

      private boolean isLoading
      When true, the game will be paused when the gui is shown
  • Constructor Details

  • Method Details

    • init

      protected void init()
      Overrides:
      init in class Screen
    • onStatsUpdated

      public void onStatsUpdated()
    • setTabActiveStateAndTooltip

      private void setTabActiveStateAndTooltip(int pIndex)
    • repositionElements

      protected void repositionElements()
      Overrides:
      repositionElements in class Screen
    • keyPressed

      public boolean keyPressed(KeyEvent p_446909_)
      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
    • render

      public void render(GuiGraphics p_440644_, int p_440632_, int p_440325_, float p_440049_)
      Description copied from interface: Renderable
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      p_440644_ - the GuiGraphics object used for rendering.
      p_440632_ - the x-coordinate of the mouse cursor.
      p_440325_ - the y-coordinate of the mouse cursor.
      p_440049_ - the partial tick time.
    • renderMenuBackground

      protected void renderMenuBackground(GuiGraphics p_439627_)
      Overrides:
      renderMenuBackground in class Screen
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen
    • getTranslationKey

      static String getTranslationKey(Stat<Identifier> pStat)