All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class StatsScreen extends Screen
  • Field Details

  • Constructor Details

  • Method Details

    • init

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

      public void onStatsUpdated()
    • setTabActiveStateAndTooltip

      private void setTabActiveStateAndTooltip(int index)
    • 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<ResourceLocation> stat)