Package net.minecraft.client.gui.hud
Class PlayerListHud
java.lang.Object
net.minecraft.client.gui.hud.PlayerListHud
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 fih
-
Nested Class Summary
Modifier and TypeClassDescriptionprivate static class
private static final record
-
Field Summary
Modifier and TypeFieldDescriptionprivate static final Identifier
private static final Identifier
private final MinecraftClient
private static final Identifier
private static final Identifier
private static final Comparator
<PlayerListEntry> private static final Identifier
private static final Identifier
private static final Identifier
private static final Identifier
private final Map
<UUID, PlayerListHud.Heart> private final InGameHud
static final int
private static final Identifier
private static final Identifier
private static final Identifier
private static final Identifier
private static final Identifier
private static final Identifier
private boolean
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate Text
applyGameModeFormatting
(PlayerListEntry entry, MutableText name) Italicizes the given text if the given player is in spectator mode.void
clear()
private List
<PlayerListEntry> getPlayerName
(PlayerListEntry entry) Returns the player name rendered by this HUD.void
render
(DrawContext context, int scaledWindowWidth, Scoreboard scoreboard, @Nullable ScoreboardObjective objective) private void
renderHearts
(int y, int left, int right, UUID uuid, DrawContext context, int score) protected void
renderLatencyIcon
(DrawContext context, int width, int x, int y, PlayerListEntry entry) private void
renderScoreboardObjective
(ScoreboardObjective objective, int y, PlayerListHud.ScoreDisplayEntry scoreDisplayEntry, int left, int right, UUID uuid, DrawContext context) void
void
void
setVisible
(boolean visible)
-
Field Details
-
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
Lfih;b:Lalf;
-
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
Lfih;c:Lalf;
-
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
Lfih;d:Lalf;
-
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
Lfih;e:Lalf;
-
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
Lfih;f:Lalf;
-
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
Lfih;g:Lalf;
-
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
Lfih;h:Lalf;
-
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
Lfih;i:Lalf;
-
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
Lfih;j:Lalf;
-
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
Lfih;k:Lalf;
-
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
Lfih;l:Lalf;
-
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
Lfih;m:Lalf;
-
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
Lfih;n:Lalf;
-
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
Lfih;o:Lalf;
-
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
Lfih;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
Lfih;a:I
-
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
Lfih;q:Lffh;
-
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
Lfih;r:Lfgs;
-
header
- Mappings:
Namespace Name Mixin selector named header
Lnet/minecraft/client/gui/hud/PlayerListHud;header:Lnet/minecraft/text/Text;
intermediary field_2153
Lnet/minecraft/class_355;field_2153:Lnet/minecraft/class_2561;
official t
Lfih;t:Lxp;
-
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
Lfih;u:Z
-
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
Lfih;v:Ljava/util/Map;
-
-
Constructor Details
-
PlayerListHud
- 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>
Lfih;<init>(Lffh;Lfgs;)V
-
-
Method Details
-
getPlayerName
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
Lfih;a(Lfyi;)Lxp;
-
applyGameModeFormatting
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
Lfih;a(Lfyi;Lyd;)Lxp;
-
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
Lfih;a(Z)V
-
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
Lfih;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
Lfih;a(Lfgt;ILewx;Lewp;)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
Lfih;a(Lfgt;IIILfyi;)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
Lfih;a(Lewp;ILfih$b;IILjava/util/UUID;Lfgt;)V
-
renderHearts
- 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
Lfih;a(IIILjava/util/UUID;Lfgt;I)V
-
setHeader
- 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
Lfih;b(Lxp;)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
Lfih;a()V
-