Class PlayerListHud

java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.hud.PlayerListHud

@Environment(CLIENT) public class PlayerListHud extends DrawableHelper
Responsible for rendering the player list while the player list key is pressed.

The current instance used by the client can be obtained by MinecraftClient.getInstance().inGameHud.getPlayerListHud().

Mappings:
Namespace Name
official eks
intermediary net/minecraft/class_355
named net/minecraft/client/gui/hud/PlayerListHud
  • Field Details

    • ENTRY_ORDERING

      private static final Comparator<PlayerListEntry> ENTRY_ORDERING
      Mappings:
      Namespace Name Mixin selector
      official m Leks;m:Ljava/util/Comparator;
      intermediary field_2156 Lnet/minecraft/class_355;field_2156:Ljava/util/Comparator;
      named ENTRY_ORDERING Lnet/minecraft/client/gui/hud/PlayerListHud;ENTRY_ORDERING:Ljava/util/Comparator;
    • MAX_ROWS

      public static final int MAX_ROWS
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Leks;a:I
      intermediary field_32205 Lnet/minecraft/class_355;field_32205:I
      named MAX_ROWS Lnet/minecraft/client/gui/hud/PlayerListHud;MAX_ROWS:I
    • HEART_OUTLINE_U

      public static final int HEART_OUTLINE_U
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Leks;b:I
      intermediary field_32206 Lnet/minecraft/class_355;field_32206:I
      named HEART_OUTLINE_U Lnet/minecraft/client/gui/hud/PlayerListHud;HEART_OUTLINE_U:I
    • BLINKING_HEART_OUTLINE_U

      public static final int BLINKING_HEART_OUTLINE_U
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Leks;c:I
      intermediary field_32207 Lnet/minecraft/class_355;field_32207:I
      named BLINKING_HEART_OUTLINE_U Lnet/minecraft/client/gui/hud/PlayerListHud;BLINKING_HEART_OUTLINE_U:I
    • HEART_U

      public static final int HEART_U
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Leks;d:I
      intermediary field_32208 Lnet/minecraft/class_355;field_32208:I
      named HEART_U Lnet/minecraft/client/gui/hud/PlayerListHud;HEART_U:I
    • HALF_HEART_U

      public static final int HALF_HEART_U
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Leks;e:I
      intermediary field_32209 Lnet/minecraft/class_355;field_32209:I
      named HALF_HEART_U Lnet/minecraft/client/gui/hud/PlayerListHud;HALF_HEART_U:I
    • GOLDEN_HEART_U

      public static final int GOLDEN_HEART_U
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Leks;f:I
      intermediary field_32210 Lnet/minecraft/class_355;field_32210:I
      named GOLDEN_HEART_U Lnet/minecraft/client/gui/hud/PlayerListHud;GOLDEN_HEART_U:I
    • HALF_GOLDEN_HEART_U

      public static final int HALF_GOLDEN_HEART_U
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official j Leks;j:I
      intermediary field_32211 Lnet/minecraft/class_355;field_32211:I
      named HALF_GOLDEN_HEART_U Lnet/minecraft/client/gui/hud/PlayerListHud;HALF_GOLDEN_HEART_U:I
    • BLINKING_HEART_U

      public static final int BLINKING_HEART_U
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official k Leks;k:I
      intermediary field_32212 Lnet/minecraft/class_355;field_32212:I
      named BLINKING_HEART_U Lnet/minecraft/client/gui/hud/PlayerListHud;BLINKING_HEART_U:I
    • BLINKING_HALF_HEART_U

      public static final int BLINKING_HALF_HEART_U
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official l Leks;l:I
      intermediary field_32213 Lnet/minecraft/class_355;field_32213:I
      named BLINKING_HALF_HEART_U Lnet/minecraft/client/gui/hud/PlayerListHud;BLINKING_HALF_HEART_U:I
    • client

      private final MinecraftClient client
      Mappings:
      Namespace Name Mixin selector
      official n Leks;n:Leih;
      intermediary field_2155 Lnet/minecraft/class_355;field_2155:Lnet/minecraft/class_310;
      named client Lnet/minecraft/client/gui/hud/PlayerListHud;client:Lnet/minecraft/client/MinecraftClient;
    • inGameHud

      private final InGameHud inGameHud
      Mappings:
      Namespace Name Mixin selector
      official o Leks;o:Lejp;
      intermediary field_2157 Lnet/minecraft/class_355;field_2157:Lnet/minecraft/class_329;
      named inGameHud Lnet/minecraft/client/gui/hud/PlayerListHud;inGameHud:Lnet/minecraft/client/gui/hud/InGameHud;
    • visible

      private boolean visible
      Mappings:
      Namespace Name Mixin selector
      official r Leks;r:Z
      intermediary field_2158 Lnet/minecraft/class_355;field_2158:Z
      named visible Lnet/minecraft/client/gui/hud/PlayerListHud;visible:Z
    • field_40393

      private final Map<UUID,PlayerListHud.class_7732> field_40393
      Mappings:
      Namespace Name Mixin selector
      official s Leks;s:Ljava/util/Map;
      intermediary field_40393 Lnet/minecraft/class_355;field_40393:Ljava/util/Map;
      named field_40393 Lnet/minecraft/client/gui/hud/PlayerListHud;field_40393:Ljava/util/Map;
  • Constructor Details

    • PlayerListHud

      public PlayerListHud(MinecraftClient minecraftClient, InGameHud inGameHud)
      Mappings:
      Namespace Name Mixin selector
      official <init> Leks;<init>(Leih;Lejp;)V
      intermediary <init> Lnet/minecraft/class_355;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_329;)V
      named <init> Lnet/minecraft/client/gui/hud/PlayerListHud;<init>(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/hud/InGameHud;)V
  • Method Details

    • getPlayerName

      public Text getPlayerName(PlayerListEntry entry)
      Returns the player name rendered by this HUD.
      Returns:
      the player name rendered by this HUD
      Mappings:
      Namespace Name Mixin selector
      official a Leks;a(Lexp;)Lsi;
      intermediary method_1918 Lnet/minecraft/class_355;method_1918(Lnet/minecraft/class_640;)Lnet/minecraft/class_2561;
      named getPlayerName Lnet/minecraft/client/gui/hud/PlayerListHud;getPlayerName(Lnet/minecraft/client/network/PlayerListEntry;)Lnet/minecraft/text/Text;
    • applyGameModeFormatting

      private Text applyGameModeFormatting(PlayerListEntry entry, MutableText name)
      Italicizes the given text if the given player is in spectator mode.
      Mappings:
      Namespace Name Mixin selector
      official a Leks;a(Lexp;Lsv;)Lsi;
      intermediary method_27538 Lnet/minecraft/class_355;method_27538(Lnet/minecraft/class_640;Lnet/minecraft/class_5250;)Lnet/minecraft/class_2561;
      named applyGameModeFormatting Lnet/minecraft/client/gui/hud/PlayerListHud;applyGameModeFormatting(Lnet/minecraft/client/network/PlayerListEntry;Lnet/minecraft/text/MutableText;)Lnet/minecraft/text/Text;
    • setVisible

      public void setVisible(boolean visible)
      Mappings:
      Namespace Name Mixin selector
      official a Leks;a(Z)V
      intermediary method_1921 Lnet/minecraft/class_355;method_1921(Z)V
      named setVisible Lnet/minecraft/client/gui/hud/PlayerListHud;setVisible(Z)V
    • render

      public void render(MatrixStack matrices, int scaledWindowWidth, Scoreboard scoreboard, @Nullable @Nullable ScoreboardObjective objective)
      Mappings:
      Namespace Name Mixin selector
      official a Leks;a(Ledd;ILeac;Ldzz;)V
      intermediary method_1919 Lnet/minecraft/class_355;method_1919(Lnet/minecraft/class_4587;ILnet/minecraft/class_269;Lnet/minecraft/class_266;)V
      named render Lnet/minecraft/client/gui/hud/PlayerListHud;render(Lnet/minecraft/client/util/math/MatrixStack;ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreboardObjective;)V
    • renderLatencyIcon

      protected void renderLatencyIcon(MatrixStack matrices, int width, int x, int y, PlayerListEntry entry)
      Mappings:
      Namespace Name Mixin selector
      official a Leks;a(Ledd;IIILexp;)V
      intermediary method_1923 Lnet/minecraft/class_355;method_1923(Lnet/minecraft/class_4587;IIILnet/minecraft/class_640;)V
      named renderLatencyIcon Lnet/minecraft/client/gui/hud/PlayerListHud;renderLatencyIcon(Lnet/minecraft/client/util/math/MatrixStack;IIILnet/minecraft/client/network/PlayerListEntry;)V
    • renderScoreboardObjective

      private void renderScoreboardObjective(ScoreboardObjective objective, int y, String player, int int2, int int3, UUID uUID, MatrixStack matrices)
      Mappings:
      Namespace Name Mixin selector
      official a Leks;a(Ldzz;ILjava/lang/String;IILjava/util/UUID;Ledd;)V
      intermediary method_1922 Lnet/minecraft/class_355;method_1922(Lnet/minecraft/class_266;ILjava/lang/String;IILjava/util/UUID;Lnet/minecraft/class_4587;)V
      named renderScoreboardObjective Lnet/minecraft/client/gui/hud/PlayerListHud;renderScoreboardObjective(Lnet/minecraft/scoreboard/ScoreboardObjective;ILjava/lang/String;IILjava/util/UUID;Lnet/minecraft/client/util/math/MatrixStack;)V
    • method_45590

      private void method_45590(int int2, int int3, int int4, UUID uUID, MatrixStack matrixStack, int int5)
      Mappings:
      Namespace Name Mixin selector
      official a Leks;a(IIILjava/util/UUID;Ledd;I)V
      intermediary method_45590 Lnet/minecraft/class_355;method_45590(IIILjava/util/UUID;Lnet/minecraft/class_4587;I)V
      named method_45590 Lnet/minecraft/client/gui/hud/PlayerListHud;method_45590(IIILjava/util/UUID;Lnet/minecraft/client/util/math/MatrixStack;I)V
    • setFooter

      public void setFooter(@Nullable @Nullable Text footer)
      Mappings:
      Namespace Name Mixin selector
      official a Leks;a(Lsi;)V
      intermediary method_1924 Lnet/minecraft/class_355;method_1924(Lnet/minecraft/class_2561;)V
      named setFooter Lnet/minecraft/client/gui/hud/PlayerListHud;setFooter(Lnet/minecraft/text/Text;)V
    • setHeader

      public void setHeader(@Nullable @Nullable Text header)
      Mappings:
      Namespace Name Mixin selector
      official b Leks;b(Lsi;)V
      intermediary method_1925 Lnet/minecraft/class_355;method_1925(Lnet/minecraft/class_2561;)V
      named setHeader Lnet/minecraft/client/gui/hud/PlayerListHud;setHeader(Lnet/minecraft/text/Text;)V
    • clear

      public void clear()
      Mappings:
      Namespace Name Mixin selector
      official a Leks;a()V
      intermediary method_1920 Lnet/minecraft/class_355;method_1920()V
      named clear Lnet/minecraft/client/gui/hud/PlayerListHud;clear()V