Class PlayerListHud

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

@Environment(CLIENT) public class PlayerListHud extends Object
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
named net/minecraft/client/gui/hud/PlayerListHud
intermediary net/minecraft/class_355
official fpg
  • Field Details

    • PING_UNKNOWN_ICON_TEXTURE

      private static final Identifier PING_UNKNOWN_ICON_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named PING_UNKNOWN_ICON_TEXTURE Lnet/minecraft/client/gui/hud/PlayerListHud;PING_UNKNOWN_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45365 Lnet/minecraft/class_355;field_45365:Lnet/minecraft/class_2960;
      official b Lfpg;b:Lalz;
    • PING_1_ICON_TEXTURE

      private static final Identifier PING_1_ICON_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named PING_1_ICON_TEXTURE Lnet/minecraft/client/gui/hud/PlayerListHud;PING_1_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45366 Lnet/minecraft/class_355;field_45366:Lnet/minecraft/class_2960;
      official c Lfpg;c:Lalz;
    • PING_2_ICON_TEXTURE

      private static final Identifier PING_2_ICON_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named PING_2_ICON_TEXTURE Lnet/minecraft/client/gui/hud/PlayerListHud;PING_2_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45367 Lnet/minecraft/class_355;field_45367:Lnet/minecraft/class_2960;
      official d Lfpg;d:Lalz;
    • PING_3_ICON_TEXTURE

      private static final Identifier PING_3_ICON_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named PING_3_ICON_TEXTURE Lnet/minecraft/client/gui/hud/PlayerListHud;PING_3_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45368 Lnet/minecraft/class_355;field_45368:Lnet/minecraft/class_2960;
      official e Lfpg;e:Lalz;
    • PING_4_ICON_TEXTURE

      private static final Identifier PING_4_ICON_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named PING_4_ICON_TEXTURE Lnet/minecraft/client/gui/hud/PlayerListHud;PING_4_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45369 Lnet/minecraft/class_355;field_45369:Lnet/minecraft/class_2960;
      official f Lfpg;f:Lalz;
    • PING_5_ICON_TEXTURE

      private static final Identifier PING_5_ICON_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named PING_5_ICON_TEXTURE Lnet/minecraft/client/gui/hud/PlayerListHud;PING_5_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45370 Lnet/minecraft/class_355;field_45370:Lnet/minecraft/class_2960;
      official g Lfpg;g:Lalz;
    • CONTAINER_HEART_BLINKING_TEXTURE

      private static final Identifier CONTAINER_HEART_BLINKING_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named CONTAINER_HEART_BLINKING_TEXTURE Lnet/minecraft/client/gui/hud/PlayerListHud;CONTAINER_HEART_BLINKING_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45371 Lnet/minecraft/class_355;field_45371:Lnet/minecraft/class_2960;
      official h Lfpg;h:Lalz;
    • CONTAINER_HEART_TEXTURE

      private static final Identifier CONTAINER_HEART_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named CONTAINER_HEART_TEXTURE Lnet/minecraft/client/gui/hud/PlayerListHud;CONTAINER_HEART_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45372 Lnet/minecraft/class_355;field_45372:Lnet/minecraft/class_2960;
      official i Lfpg;i:Lalz;
    • FULL_HEART_BLINKING_TEXTURE

      private static final Identifier FULL_HEART_BLINKING_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named FULL_HEART_BLINKING_TEXTURE Lnet/minecraft/client/gui/hud/PlayerListHud;FULL_HEART_BLINKING_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45373 Lnet/minecraft/class_355;field_45373:Lnet/minecraft/class_2960;
      official j Lfpg;j:Lalz;
    • HALF_HEART_BLINKING_TEXTURE

      private static final Identifier HALF_HEART_BLINKING_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named HALF_HEART_BLINKING_TEXTURE Lnet/minecraft/client/gui/hud/PlayerListHud;HALF_HEART_BLINKING_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45374 Lnet/minecraft/class_355;field_45374:Lnet/minecraft/class_2960;
      official k Lfpg;k:Lalz;
    • ABSORBING_FULL_HEART_BLINKING_TEXTURE

      private static final Identifier ABSORBING_FULL_HEART_BLINKING_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named ABSORBING_FULL_HEART_BLINKING_TEXTURE Lnet/minecraft/client/gui/hud/PlayerListHud;ABSORBING_FULL_HEART_BLINKING_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45375 Lnet/minecraft/class_355;field_45375:Lnet/minecraft/class_2960;
      official l Lfpg;l:Lalz;
    • FULL_HEART_TEXTURE

      private static final Identifier FULL_HEART_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named FULL_HEART_TEXTURE Lnet/minecraft/client/gui/hud/PlayerListHud;FULL_HEART_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45376 Lnet/minecraft/class_355;field_45376:Lnet/minecraft/class_2960;
      official m Lfpg;m:Lalz;
    • ABSORBING_HALF_HEART_BLINKING_TEXTURE

      private static final Identifier ABSORBING_HALF_HEART_BLINKING_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named ABSORBING_HALF_HEART_BLINKING_TEXTURE Lnet/minecraft/client/gui/hud/PlayerListHud;ABSORBING_HALF_HEART_BLINKING_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45377 Lnet/minecraft/class_355;field_45377:Lnet/minecraft/class_2960;
      official n Lfpg;n:Lalz;
    • HALF_HEART_TEXTURE

      private static final Identifier HALF_HEART_TEXTURE
      Mappings:
      Namespace Name Mixin selector
      named HALF_HEART_TEXTURE Lnet/minecraft/client/gui/hud/PlayerListHud;HALF_HEART_TEXTURE:Lnet/minecraft/util/Identifier;
      intermediary field_45378 Lnet/minecraft/class_355;field_45378:Lnet/minecraft/class_2960;
      official o Lfpg;o:Lalz;
    • ENTRY_ORDERING

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

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

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

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

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

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

    • PlayerListHud

      public PlayerListHud(MinecraftClient client, InGameHud inGameHud)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/gui/hud/PlayerListHud;<init>(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/hud/InGameHud;)V
      intermediary <init> Lnet/minecraft/class_355;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_329;)V
      official <init> Lfpg;<init>(Lfmf;Lfnq;)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
      named getPlayerName Lnet/minecraft/client/gui/hud/PlayerListHud;getPlayerName(Lnet/minecraft/client/network/PlayerListEntry;)Lnet/minecraft/text/Text;
      intermediary method_1918 Lnet/minecraft/class_355;method_1918(Lnet/minecraft/class_640;)Lnet/minecraft/class_2561;
      official a Lfpg;a(Lgfv;)Lxv;
    • 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
      named applyGameModeFormatting Lnet/minecraft/client/gui/hud/PlayerListHud;applyGameModeFormatting(Lnet/minecraft/client/network/PlayerListEntry;Lnet/minecraft/text/MutableText;)Lnet/minecraft/text/Text;
      intermediary method_27538 Lnet/minecraft/class_355;method_27538(Lnet/minecraft/class_640;Lnet/minecraft/class_5250;)Lnet/minecraft/class_2561;
      official a Lfpg;a(Lgfv;Lyj;)Lxv;
    • setVisible

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

      private List<PlayerListEntry> collectPlayerEntries()
      Mappings:
      Namespace Name Mixin selector
      named collectPlayerEntries Lnet/minecraft/client/gui/hud/PlayerListHud;collectPlayerEntries()Ljava/util/List;
      intermediary method_48213 Lnet/minecraft/class_355;method_48213()Ljava/util/List;
      official b Lfpg;b()Ljava/util/List;
    • render

      public void render(DrawContext context, int scaledWindowWidth, Scoreboard scoreboard, @Nullable @Nullable ScoreboardObjective objective)
      Mappings:
      Namespace Name Mixin selector
      named render Lnet/minecraft/client/gui/hud/PlayerListHud;render(Lnet/minecraft/client/gui/DrawContext;ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreboardObjective;)V
      intermediary method_1919 Lnet/minecraft/class_355;method_1919(Lnet/minecraft/class_332;ILnet/minecraft/class_269;Lnet/minecraft/class_266;)V
      official a Lfpg;a(Lfnr;ILfdc;Lfcu;)V
    • renderLatencyIcon

      protected void renderLatencyIcon(DrawContext context, int width, int x, int y, PlayerListEntry entry)
      Mappings:
      Namespace Name Mixin selector
      named renderLatencyIcon Lnet/minecraft/client/gui/hud/PlayerListHud;renderLatencyIcon(Lnet/minecraft/client/gui/DrawContext;IIILnet/minecraft/client/network/PlayerListEntry;)V
      intermediary method_1923 Lnet/minecraft/class_355;method_1923(Lnet/minecraft/class_332;IIILnet/minecraft/class_640;)V
      official a Lfpg;a(Lfnr;IIILgfv;)V
    • renderScoreboardObjective

      private void renderScoreboardObjective(ScoreboardObjective objective, int y, PlayerListHud.ScoreDisplayEntry scoreDisplayEntry, int left, int right, UUID uuid, DrawContext context)
      Mappings:
      Namespace Name Mixin selector
      named renderScoreboardObjective Lnet/minecraft/client/gui/hud/PlayerListHud;renderScoreboardObjective(Lnet/minecraft/scoreboard/ScoreboardObjective;ILnet/minecraft/client/gui/hud/PlayerListHud$ScoreDisplayEntry;IILjava/util/UUID;Lnet/minecraft/client/gui/DrawContext;)V
      intermediary method_1922 Lnet/minecraft/class_355;method_1922(Lnet/minecraft/class_266;ILnet/minecraft/class_355$class_9018;IILjava/util/UUID;Lnet/minecraft/class_332;)V
      official a Lfpg;a(Lfcu;ILfpg$b;IILjava/util/UUID;Lfnr;)V
    • renderHearts

      private void renderHearts(int y, int left, int right, UUID uuid, DrawContext context, int score)
      Mappings:
      Namespace Name Mixin selector
      named renderHearts Lnet/minecraft/client/gui/hud/PlayerListHud;renderHearts(IIILjava/util/UUID;Lnet/minecraft/client/gui/DrawContext;I)V
      intermediary method_45590 Lnet/minecraft/class_355;method_45590(IIILjava/util/UUID;Lnet/minecraft/class_332;I)V
      official a Lfpg;a(IIILjava/util/UUID;Lfnr;I)V
    • setFooter

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

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

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