Class StatsScreen

All Implemented Interfaces:
Drawable, Element, Navigable, ParentElement, StatsListener

@Environment(CLIENT) public class StatsScreen extends Screen implements StatsListener
Mappings:
Namespace Name
official euz
intermediary net/minecraft/class_447
named net/minecraft/client/gui/screen/StatsScreen
  • Field Details

    • DOWNLOADING_STATS_TEXT

      private static final Text DOWNLOADING_STATS_TEXT
      Mappings:
      Namespace Name Mixin selector
      official c Leuz;c:Lsw;
      intermediary field_26546 Lnet/minecraft/class_447;field_26546:Lnet/minecraft/class_2561;
      named DOWNLOADING_STATS_TEXT Lnet/minecraft/client/gui/screen/StatsScreen;DOWNLOADING_STATS_TEXT:Lnet/minecraft/text/Text;
    • STATS_ICONS_TEXTURE

      private static final Identifier STATS_ICONS_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      official k Leuz;k:Lacq;
      intermediary field_44670 Lnet/minecraft/class_447;field_44670:Lnet/minecraft/class_2960;
      named STATS_ICONS_TEXTURE Lnet/minecraft/client/gui/screen/StatsScreen;STATS_ICONS_TEXTURE:Lnet/minecraft/util/Identifier;
    • field_32281

      private static final int field_32281
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official r Leuz;r:I
      intermediary field_32281 Lnet/minecraft/class_447;field_32281:I
      named field_32281 Lnet/minecraft/client/gui/screen/StatsScreen;field_32281:I
    • field_32282

      private static final int field_32282
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official s Leuz;s:I
      intermediary field_32282 Lnet/minecraft/class_447;field_32282:I
      named field_32282 Lnet/minecraft/client/gui/screen/StatsScreen;field_32282:I
    • field_32283

      private static final int field_32283
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official t Leuz;t:I
      intermediary field_32283 Lnet/minecraft/class_447;field_32283:I
      named field_32283 Lnet/minecraft/client/gui/screen/StatsScreen;field_32283:I
    • field_32284

      private static final int field_32284
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official u Leuz;u:I
      intermediary field_32284 Lnet/minecraft/class_447;field_32284:I
      named field_32284 Lnet/minecraft/client/gui/screen/StatsScreen;field_32284:I
    • field_32285

      private static final int field_32285
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official v Leuz;v:I
      intermediary field_32285 Lnet/minecraft/class_447;field_32285:I
      named field_32285 Lnet/minecraft/client/gui/screen/StatsScreen;field_32285:I
    • field_32274

      private static final int field_32274
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official w Leuz;w:I
      intermediary field_32274 Lnet/minecraft/class_447;field_32274:I
      named field_32274 Lnet/minecraft/client/gui/screen/StatsScreen;field_32274:I
    • field_32275

      private static final int field_32275
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official x Leuz;x:I
      intermediary field_32275 Lnet/minecraft/class_447;field_32275:I
      named field_32275 Lnet/minecraft/client/gui/screen/StatsScreen;field_32275:I
    • field_32276

      private static final int field_32276
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official y Leuz;y:I
      intermediary field_32276 Lnet/minecraft/class_447;field_32276:I
      named field_32276 Lnet/minecraft/client/gui/screen/StatsScreen;field_32276:I
    • field_32277

      private static final int field_32277
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official z Leuz;z:I
      intermediary field_32277 Lnet/minecraft/class_447;field_32277:I
      named field_32277 Lnet/minecraft/client/gui/screen/StatsScreen;field_32277:I
    • field_32278

      private static final int field_32278
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official A Leuz;A:I
      intermediary field_32278 Lnet/minecraft/class_447;field_32278:I
      named field_32278 Lnet/minecraft/client/gui/screen/StatsScreen;field_32278:I
    • field_32279

      private static final int field_32279
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official C Leuz;C:I
      intermediary field_32279 Lnet/minecraft/class_447;field_32279:I
      named field_32279 Lnet/minecraft/client/gui/screen/StatsScreen;field_32279:I
    • field_32280

      private static final int field_32280
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official D Leuz;D:I
      intermediary field_32280 Lnet/minecraft/class_447;field_32280:I
      named field_32280 Lnet/minecraft/client/gui/screen/StatsScreen;field_32280:I
    • parent

      protected final Screen parent
      Mappings:
      Namespace Name Mixin selector
      official a Leuz;a:Leuq;
      intermediary field_2648 Lnet/minecraft/class_447;field_2648:Lnet/minecraft/class_437;
      named parent Lnet/minecraft/client/gui/screen/StatsScreen;parent:Lnet/minecraft/client/gui/screen/Screen;
    • generalStats

      private StatsScreen.GeneralStatsListWidget generalStats
      Mappings:
      Namespace Name Mixin selector
      official l Leuz;l:Leuz$a;
      intermediary field_2644 Lnet/minecraft/class_447;field_2644:Lnet/minecraft/class_447$class_4198;
      named generalStats Lnet/minecraft/client/gui/screen/StatsScreen;generalStats:Lnet/minecraft/client/gui/screen/StatsScreen$GeneralStatsListWidget;
    • itemStats

      Mappings:
      Namespace Name Mixin selector
      official m Leuz;m:Leuz$b;
      intermediary field_2642 Lnet/minecraft/class_447;field_2642:Lnet/minecraft/class_447$class_4200;
      named itemStats Lnet/minecraft/client/gui/screen/StatsScreen;itemStats:Lnet/minecraft/client/gui/screen/StatsScreen$ItemStatsListWidget;
    • mobStats

      Mappings:
      Namespace Name Mixin selector
      official n Leuz;n:Leuz$c;
      intermediary field_2646 Lnet/minecraft/class_447;field_2646:Lnet/minecraft/class_447$class_4202;
      named mobStats Lnet/minecraft/client/gui/screen/StatsScreen;mobStats:Lnet/minecraft/client/gui/screen/StatsScreen$EntityStatsListWidget;
    • statHandler

      final StatHandler statHandler
      Mappings:
      Namespace Name Mixin selector
      official o Leuz;o:Lams;
      intermediary field_2647 Lnet/minecraft/class_447;field_2647:Lnet/minecraft/class_3469;
      named statHandler Lnet/minecraft/client/gui/screen/StatsScreen;statHandler:Lnet/minecraft/stat/StatHandler;
    • selectedList

      Mappings:
      Namespace Name Mixin selector
      official p Leuz;p:Leqc;
      intermediary field_2643 Lnet/minecraft/class_447;field_2643:Lnet/minecraft/class_4280;
      named selectedList Lnet/minecraft/client/gui/screen/StatsScreen;selectedList:Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget;
    • downloadingStats

      private boolean downloadingStats
      Mappings:
      Namespace Name Mixin selector
      official q Leuz;q:Z
      intermediary field_2645 Lnet/minecraft/class_447;field_2645:Z
      named downloadingStats Lnet/minecraft/client/gui/screen/StatsScreen;downloadingStats:Z
  • Constructor Details

    • StatsScreen

      public StatsScreen(Screen parent, StatHandler statHandler)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leuz;<init>(Leuq;Lams;)V
      intermediary <init> Lnet/minecraft/class_447;<init>(Lnet/minecraft/class_437;Lnet/minecraft/class_3469;)V
      named <init> Lnet/minecraft/client/gui/screen/StatsScreen;<init>(Lnet/minecraft/client/gui/screen/Screen;Lnet/minecraft/stat/StatHandler;)V
  • Method Details

    • init

      protected void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      This should call Screen.setInitialFocus(net.minecraft.client.gui.Element) to set the element that is initially focused.

      Overrides:
      init in class Screen
      Mappings:
      Namespace Name Mixin selector
      official b Leuq;b()V
      intermediary method_25426 Lnet/minecraft/class_437;method_25426()V
      named init Lnet/minecraft/client/gui/screen/Screen;init()V
    • createLists

      public void createLists()
      Mappings:
      Namespace Name Mixin selector
      official l Leuz;l()V
      intermediary method_2270 Lnet/minecraft/class_447;method_2270()V
      named createLists Lnet/minecraft/client/gui/screen/StatsScreen;createLists()V
    • createButtons

      public void createButtons()
      Mappings:
      Namespace Name Mixin selector
      official B Leuz;B()V
      intermediary method_2267 Lnet/minecraft/class_447;method_2267()V
      named createButtons Lnet/minecraft/client/gui/screen/StatsScreen;createButtons()V
    • render

      public void render(DrawContext context, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
      Mappings:
      Namespace Name Mixin selector
      official a Leqh;a(Leox;IIF)V
      intermediary method_25394 Lnet/minecraft/class_4068;method_25394(Lnet/minecraft/class_332;IIF)V
      named render Lnet/minecraft/client/gui/Drawable;render(Lnet/minecraft/client/gui/DrawContext;IIF)V
    • onStatsReady

      public void onStatsReady()
      Specified by:
      onStatsReady in interface StatsListener
      Mappings:
      Namespace Name Mixin selector
      official C Leva;C()V
      intermediary method_2300 Lnet/minecraft/class_452;method_2300()V
      named onStatsReady Lnet/minecraft/client/gui/screen/StatsListener;onStatsReady()V
    • shouldPause

      public boolean shouldPause()
      Overrides:
      shouldPause in class Screen
      Mappings:
      Namespace Name Mixin selector
      official az_ Leuq;az_()Z
      intermediary method_25421 Lnet/minecraft/class_437;method_25421()Z
      named shouldPause Lnet/minecraft/client/gui/screen/Screen;shouldPause()Z
    • getSelectedStatList

      @Nullable public @Nullable AlwaysSelectedEntryListWidget<?> getSelectedStatList()
      Mappings:
      Namespace Name Mixin selector
      official D Leuz;D()Leqc;
      intermediary method_19399 Lnet/minecraft/class_447;method_19399()Lnet/minecraft/class_4280;
      named getSelectedStatList Lnet/minecraft/client/gui/screen/StatsScreen;getSelectedStatList()Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget;
    • selectStatList

      public void selectStatList(@Nullable @Nullable AlwaysSelectedEntryListWidget<?> list)
      Mappings:
      Namespace Name Mixin selector
      official a Leuz;a(Leqc;)V
      intermediary method_19390 Lnet/minecraft/class_447;method_19390(Lnet/minecraft/class_4280;)V
      named selectStatList Lnet/minecraft/client/gui/screen/StatsScreen;selectStatList(Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget;)V
    • getStatTranslationKey

      static String getStatTranslationKey(Stat<Identifier> stat)
      Mappings:
      Namespace Name Mixin selector
      official a Leuz;a(Lamo;)Ljava/lang/String;
      intermediary method_27027 Lnet/minecraft/class_447;method_27027(Lnet/minecraft/class_3445;)Ljava/lang/String;
      named getStatTranslationKey Lnet/minecraft/client/gui/screen/StatsScreen;getStatTranslationKey(Lnet/minecraft/stat/Stat;)Ljava/lang/String;
    • getColumnX

      int getColumnX(int index)
      Mappings:
      Namespace Name Mixin selector
      official a Leuz;a(I)I
      intermediary method_2285 Lnet/minecraft/class_447;method_2285(I)I
      named getColumnX Lnet/minecraft/client/gui/screen/StatsScreen;getColumnX(I)I
    • renderStatItem

      void renderStatItem(DrawContext context, int x, int y, Item item)
      Mappings:
      Namespace Name Mixin selector
      official a Leuz;a(Leox;IILcfu;)V
      intermediary method_2289 Lnet/minecraft/class_447;method_2289(Lnet/minecraft/class_332;IILnet/minecraft/class_1792;)V
      named renderStatItem Lnet/minecraft/client/gui/screen/StatsScreen;renderStatItem(Lnet/minecraft/client/gui/DrawContext;IILnet/minecraft/item/Item;)V
    • renderIcon

      void renderIcon(DrawContext context, int x, int y, int u, int v)
      Mappings:
      Namespace Name Mixin selector
      official a Leuz;a(Leox;IIII)V
      intermediary method_2282 Lnet/minecraft/class_447;method_2282(Lnet/minecraft/class_332;IIII)V
      named renderIcon Lnet/minecraft/client/gui/screen/StatsScreen;renderIcon(Lnet/minecraft/client/gui/DrawContext;IIII)V