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 official etlintermediary net/minecraft/class_355named net/minecraft/client/gui/hud/PlayerListHud
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Identifierprivate static final Identifierprivate final MinecraftClientprivate static final Identifierprivate static final Identifierprivate static final Comparator<PlayerListEntry>private @Nullable Textprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate @Nullable Textprivate final Map<UUID,PlayerListHud.Heart> private final InGameHudstatic final intprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate boolean -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate TextapplyGameModeFormatting(PlayerListEntry entry, MutableText name) Italicizes the given text if the given player is in spectator mode.voidclear()private List<PlayerListEntry>getPlayerName(PlayerListEntry entry) Returns the player name rendered by this HUD.voidrender(DrawContext context, int scaledWindowWidth, Scoreboard scoreboard, @Nullable ScoreboardObjective objective) private voidrenderHearts(int y, int left, int right, UUID uuid, DrawContext context, int score) protected voidrenderLatencyIcon(DrawContext context, int width, int x, int y, PlayerListEntry entry) private voidrenderScoreboardObjective(ScoreboardObjective objective, int y, String player, int left, int right, UUID uuid, DrawContext context) voidvoidvoidsetVisible(boolean visible)
-
Field Details
-
PING_UNKNOWN_ICON_TEXTURE
- Mappings:
Namespace Name Mixin selector official bLetl;b:Laez;intermediary field_45365Lnet/minecraft/class_355;field_45365:Lnet/minecraft/class_2960;named PING_UNKNOWN_ICON_TEXTURELnet/minecraft/client/gui/hud/PlayerListHud;PING_UNKNOWN_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
-
PING_1_ICON_TEXTURE
- Mappings:
Namespace Name Mixin selector official cLetl;c:Laez;intermediary field_45366Lnet/minecraft/class_355;field_45366:Lnet/minecraft/class_2960;named PING_1_ICON_TEXTURELnet/minecraft/client/gui/hud/PlayerListHud;PING_1_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
-
PING_2_ICON_TEXTURE
- Mappings:
Namespace Name Mixin selector official dLetl;d:Laez;intermediary field_45367Lnet/minecraft/class_355;field_45367:Lnet/minecraft/class_2960;named PING_2_ICON_TEXTURELnet/minecraft/client/gui/hud/PlayerListHud;PING_2_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
-
PING_3_ICON_TEXTURE
- Mappings:
Namespace Name Mixin selector official eLetl;e:Laez;intermediary field_45368Lnet/minecraft/class_355;field_45368:Lnet/minecraft/class_2960;named PING_3_ICON_TEXTURELnet/minecraft/client/gui/hud/PlayerListHud;PING_3_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
-
PING_4_ICON_TEXTURE
- Mappings:
Namespace Name Mixin selector official fLetl;f:Laez;intermediary field_45369Lnet/minecraft/class_355;field_45369:Lnet/minecraft/class_2960;named PING_4_ICON_TEXTURELnet/minecraft/client/gui/hud/PlayerListHud;PING_4_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
-
PING_5_ICON_TEXTURE
- Mappings:
Namespace Name Mixin selector official gLetl;g:Laez;intermediary field_45370Lnet/minecraft/class_355;field_45370:Lnet/minecraft/class_2960;named PING_5_ICON_TEXTURELnet/minecraft/client/gui/hud/PlayerListHud;PING_5_ICON_TEXTURE:Lnet/minecraft/util/Identifier;
-
CONTAINER_HEART_BLINKING_TEXTURE
- Mappings:
Namespace Name Mixin selector official hLetl;h:Laez;intermediary field_45371Lnet/minecraft/class_355;field_45371:Lnet/minecraft/class_2960;named CONTAINER_HEART_BLINKING_TEXTURELnet/minecraft/client/gui/hud/PlayerListHud;CONTAINER_HEART_BLINKING_TEXTURE:Lnet/minecraft/util/Identifier;
-
CONTAINER_HEART_TEXTURE
- Mappings:
Namespace Name Mixin selector official iLetl;i:Laez;intermediary field_45372Lnet/minecraft/class_355;field_45372:Lnet/minecraft/class_2960;named CONTAINER_HEART_TEXTURELnet/minecraft/client/gui/hud/PlayerListHud;CONTAINER_HEART_TEXTURE:Lnet/minecraft/util/Identifier;
-
FULL_HEART_BLINKING_TEXTURE
- Mappings:
Namespace Name Mixin selector official jLetl;j:Laez;intermediary field_45373Lnet/minecraft/class_355;field_45373:Lnet/minecraft/class_2960;named FULL_HEART_BLINKING_TEXTURELnet/minecraft/client/gui/hud/PlayerListHud;FULL_HEART_BLINKING_TEXTURE:Lnet/minecraft/util/Identifier;
-
HALF_HEART_BLINKING_TEXTURE
- Mappings:
Namespace Name Mixin selector official kLetl;k:Laez;intermediary field_45374Lnet/minecraft/class_355;field_45374:Lnet/minecraft/class_2960;named HALF_HEART_BLINKING_TEXTURELnet/minecraft/client/gui/hud/PlayerListHud;HALF_HEART_BLINKING_TEXTURE:Lnet/minecraft/util/Identifier;
-
ABSORBING_FULL_HEART_BLINKING_TEXTURE
- Mappings:
Namespace Name Mixin selector official lLetl;l:Laez;intermediary field_45375Lnet/minecraft/class_355;field_45375:Lnet/minecraft/class_2960;named ABSORBING_FULL_HEART_BLINKING_TEXTURELnet/minecraft/client/gui/hud/PlayerListHud;ABSORBING_FULL_HEART_BLINKING_TEXTURE:Lnet/minecraft/util/Identifier;
-
FULL_HEART_TEXTURE
- Mappings:
Namespace Name Mixin selector official mLetl;m:Laez;intermediary field_45376Lnet/minecraft/class_355;field_45376:Lnet/minecraft/class_2960;named FULL_HEART_TEXTURELnet/minecraft/client/gui/hud/PlayerListHud;FULL_HEART_TEXTURE:Lnet/minecraft/util/Identifier;
-
ABSORBING_HALF_HEART_BLINKING_TEXTURE
- Mappings:
Namespace Name Mixin selector official nLetl;n:Laez;intermediary field_45377Lnet/minecraft/class_355;field_45377:Lnet/minecraft/class_2960;named ABSORBING_HALF_HEART_BLINKING_TEXTURELnet/minecraft/client/gui/hud/PlayerListHud;ABSORBING_HALF_HEART_BLINKING_TEXTURE:Lnet/minecraft/util/Identifier;
-
HALF_HEART_TEXTURE
- Mappings:
Namespace Name Mixin selector official oLetl;o:Laez;intermediary field_45378Lnet/minecraft/class_355;field_45378:Lnet/minecraft/class_2960;named HALF_HEART_TEXTURELnet/minecraft/client/gui/hud/PlayerListHud;HALF_HEART_TEXTURE:Lnet/minecraft/util/Identifier;
-
ENTRY_ORDERING
- Mappings:
Namespace Name Mixin selector official pLetl;p:Ljava/util/Comparator;intermediary field_2156Lnet/minecraft/class_355;field_2156:Ljava/util/Comparator;named ENTRY_ORDERINGLnet/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 aLetl;a:Iintermediary field_32205Lnet/minecraft/class_355;field_32205:Inamed MAX_ROWSLnet/minecraft/client/gui/hud/PlayerListHud;MAX_ROWS:I
-
client
- Mappings:
Namespace Name Mixin selector official qLetl;q:Leqp;intermediary field_2155Lnet/minecraft/class_355;field_2155:Lnet/minecraft/class_310;named clientLnet/minecraft/client/gui/hud/PlayerListHud;client:Lnet/minecraft/client/MinecraftClient;
-
inGameHud
- Mappings:
Namespace Name Mixin selector official rLetl;r:Lery;intermediary field_2157Lnet/minecraft/class_355;field_2157:Lnet/minecraft/class_329;named inGameHudLnet/minecraft/client/gui/hud/PlayerListHud;inGameHud:Lnet/minecraft/client/gui/hud/InGameHud;
-
header
- Mappings:
Namespace Name Mixin selector official tLetl;t:Ltl;intermediary field_2153Lnet/minecraft/class_355;field_2153:Lnet/minecraft/class_2561;named headerLnet/minecraft/client/gui/hud/PlayerListHud;header:Lnet/minecraft/text/Text;
-
visible
private boolean visible- Mappings:
Namespace Name Mixin selector official uLetl;u:Zintermediary field_2158Lnet/minecraft/class_355;field_2158:Znamed visibleLnet/minecraft/client/gui/hud/PlayerListHud;visible:Z
-
hearts
- Mappings:
Namespace Name Mixin selector official vLetl;v:Ljava/util/Map;intermediary field_40393Lnet/minecraft/class_355;field_40393:Ljava/util/Map;named heartsLnet/minecraft/client/gui/hud/PlayerListHud;hearts:Ljava/util/Map;
-
-
Constructor Details
-
PlayerListHud
- Mappings:
Namespace Name Mixin selector official <init>Letl;<init>(Leqp;Lery;)Vintermediary <init>Lnet/minecraft/class_355;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_329;)Vnamed <init>Lnet/minecraft/client/gui/hud/PlayerListHud;<init>(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/hud/InGameHud;)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 official aLetl;a(Lfjb;)Ltl;intermediary method_1918Lnet/minecraft/class_355;method_1918(Lnet/minecraft/class_640;)Lnet/minecraft/class_2561;named getPlayerNameLnet/minecraft/client/gui/hud/PlayerListHud;getPlayerName(Lnet/minecraft/client/network/PlayerListEntry;)Lnet/minecraft/text/Text;
-
applyGameModeFormatting
Italicizes the given text if the given player is in spectator mode.- Mappings:
Namespace Name Mixin selector official aLetl;a(Lfjb;Ltz;)Ltl;intermediary method_27538Lnet/minecraft/class_355;method_27538(Lnet/minecraft/class_640;Lnet/minecraft/class_5250;)Lnet/minecraft/class_2561;named applyGameModeFormattingLnet/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 aLetl;a(Z)Vintermediary method_1921Lnet/minecraft/class_355;method_1921(Z)Vnamed setVisibleLnet/minecraft/client/gui/hud/PlayerListHud;setVisible(Z)V
-
collectPlayerEntries
- Mappings:
Namespace Name Mixin selector official bLetl;b()Ljava/util/List;intermediary method_48213Lnet/minecraft/class_355;method_48213()Ljava/util/List;named collectPlayerEntriesLnet/minecraft/client/gui/hud/PlayerListHud;collectPlayerEntries()Ljava/util/List;
-
render
public void render(DrawContext context, int scaledWindowWidth, Scoreboard scoreboard, @Nullable @Nullable ScoreboardObjective objective) - Mappings:
Namespace Name Mixin selector official aLetl;a(Lerz;ILeig;Leid;)Vintermediary method_1919Lnet/minecraft/class_355;method_1919(Lnet/minecraft/class_332;ILnet/minecraft/class_269;Lnet/minecraft/class_266;)Vnamed renderLnet/minecraft/client/gui/hud/PlayerListHud;render(Lnet/minecraft/client/gui/DrawContext;ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreboardObjective;)V
-
renderLatencyIcon
protected void renderLatencyIcon(DrawContext context, int width, int x, int y, PlayerListEntry entry) - Mappings:
Namespace Name Mixin selector official aLetl;a(Lerz;IIILfjb;)Vintermediary method_1923Lnet/minecraft/class_355;method_1923(Lnet/minecraft/class_332;IIILnet/minecraft/class_640;)Vnamed renderLatencyIconLnet/minecraft/client/gui/hud/PlayerListHud;renderLatencyIcon(Lnet/minecraft/client/gui/DrawContext;IIILnet/minecraft/client/network/PlayerListEntry;)V
-
renderScoreboardObjective
private void renderScoreboardObjective(ScoreboardObjective objective, int y, String player, int left, int right, UUID uuid, DrawContext context) - Mappings:
Namespace Name Mixin selector official aLetl;a(Leid;ILjava/lang/String;IILjava/util/UUID;Lerz;)Vintermediary method_1922Lnet/minecraft/class_355;method_1922(Lnet/minecraft/class_266;ILjava/lang/String;IILjava/util/UUID;Lnet/minecraft/class_332;)Vnamed renderScoreboardObjectiveLnet/minecraft/client/gui/hud/PlayerListHud;renderScoreboardObjective(Lnet/minecraft/scoreboard/ScoreboardObjective;ILjava/lang/String;IILjava/util/UUID;Lnet/minecraft/client/gui/DrawContext;)V
-
renderHearts
- Mappings:
Namespace Name Mixin selector official aLetl;a(IIILjava/util/UUID;Lerz;I)Vintermediary method_45590Lnet/minecraft/class_355;method_45590(IIILjava/util/UUID;Lnet/minecraft/class_332;I)Vnamed renderHeartsLnet/minecraft/client/gui/hud/PlayerListHud;renderHearts(IIILjava/util/UUID;Lnet/minecraft/client/gui/DrawContext;I)V
-
setHeader
- Mappings:
Namespace Name Mixin selector official bLetl;b(Ltl;)Vintermediary method_1925Lnet/minecraft/class_355;method_1925(Lnet/minecraft/class_2561;)Vnamed setHeaderLnet/minecraft/client/gui/hud/PlayerListHud;setHeader(Lnet/minecraft/text/Text;)V
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector official aLetl;a()Vintermediary method_1920Lnet/minecraft/class_355;method_1920()Vnamed clearLnet/minecraft/client/gui/hud/PlayerListHud;clear()V
-