Package net.minecraft.client.gui.hud
Class PlayerListHud
java.lang.Object
net.minecraft.client.gui.DrawableHelper
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 emiintermediary net/minecraft/class_355named net/minecraft/client/gui/hud/PlayerListHud
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intprivate final MinecraftClientprivate static final Comparator<PlayerListEntry>static final intstatic final intstatic final intstatic final intstatic final intprivate final Map<UUID,PlayerListHud.Heart> private final InGameHudstatic final intprivate booleanFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
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()getPlayerName(PlayerListEntry entry) Returns the player name rendered by this HUD.private List<PlayerListEntry>voidrender(MatrixStack matrices, int scaledWindowWidth, Scoreboard scoreboard, @Nullable ScoreboardObjective objective) private voidrenderHearts(int y, int left, int right, UUID uuid, MatrixStack matrices, int score) protected voidrenderLatencyIcon(MatrixStack matrices, int width, int x, int y, PlayerListEntry entry) private voidrenderScoreboardObjective(ScoreboardObjective objective, int y, String player, int left, int right, UUID uuid, MatrixStack matrices) voidvoidvoidsetVisible(boolean visible) Methods inherited from class net.minecraft.client.gui.DrawableHelper
disableScissor, drawCenteredText, drawCenteredText, drawCenteredTextWithShadow, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, drawWithOutline, drawWithShadow, enableScissor, fill, fillGradient, fillGradient, fillGradient, getZOffset, method_48196, setZOffset
-
Field Details
-
ENTRY_ORDERING
- Mappings:
Namespace Name Mixin selector official mLemi;m: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 aLemi;a:Iintermediary field_32205Lnet/minecraft/class_355;field_32205:Inamed MAX_ROWSLnet/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 bLemi;b:Iintermediary field_32206Lnet/minecraft/class_355;field_32206:Inamed HEART_OUTLINE_ULnet/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 cLemi;c:Iintermediary field_32207Lnet/minecraft/class_355;field_32207:Inamed BLINKING_HEART_OUTLINE_ULnet/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 dLemi;d:Iintermediary field_32208Lnet/minecraft/class_355;field_32208:Inamed HEART_ULnet/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 eLemi;e:Iintermediary field_32209Lnet/minecraft/class_355;field_32209:Inamed HALF_HEART_ULnet/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 fLemi;f:Iintermediary field_32210Lnet/minecraft/class_355;field_32210:Inamed GOLDEN_HEART_ULnet/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 jLemi;j:Iintermediary field_32211Lnet/minecraft/class_355;field_32211:Inamed HALF_GOLDEN_HEART_ULnet/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 kLemi;k:Iintermediary field_32212Lnet/minecraft/class_355;field_32212:Inamed BLINKING_HEART_ULnet/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 lLemi;l:Iintermediary field_32213Lnet/minecraft/class_355;field_32213:Inamed BLINKING_HALF_HEART_ULnet/minecraft/client/gui/hud/PlayerListHud;BLINKING_HALF_HEART_U:I
-
client
- Mappings:
Namespace Name Mixin selector official nLemi;n:Lejt;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 oLemi;o:Lelb;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 qLemi;q:Lsu;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 rLemi;r:Zintermediary field_2158Lnet/minecraft/class_355;field_2158:Znamed visibleLnet/minecraft/client/gui/hud/PlayerListHud;visible:Z
-
hearts
- Mappings:
Namespace Name Mixin selector official sLemi;s: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>Lemi;<init>(Lejt;Lelb;)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 aLemi;a(Lfad;)Lsu;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 aLemi;a(Lfad;Lth;)Lsu;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 aLemi;a(Z)Vintermediary method_1921Lnet/minecraft/class_355;method_1921(Z)Vnamed setVisibleLnet/minecraft/client/gui/hud/PlayerListHud;setVisible(Z)V
-
method_48213
- Mappings:
Namespace Name Mixin selector official bLemi;b()Ljava/util/List;intermediary method_48213Lnet/minecraft/class_355;method_48213()Ljava/util/List;named method_48213Lnet/minecraft/client/gui/hud/PlayerListHud;method_48213()Ljava/util/List;
-
render
public void render(MatrixStack matrices, int scaledWindowWidth, Scoreboard scoreboard, @Nullable @Nullable ScoreboardObjective objective) - Mappings:
Namespace Name Mixin selector official aLemi;a(Leer;ILebq;Lebn;)Vintermediary method_1919Lnet/minecraft/class_355;method_1919(Lnet/minecraft/class_4587;ILnet/minecraft/class_269;Lnet/minecraft/class_266;)Vnamed renderLnet/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 aLemi;a(Leer;IIILfad;)Vintermediary method_1923Lnet/minecraft/class_355;method_1923(Lnet/minecraft/class_4587;IIILnet/minecraft/class_640;)Vnamed renderLatencyIconLnet/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 left, int right, UUID uuid, MatrixStack matrices) - Mappings:
Namespace Name Mixin selector official aLemi;a(Lebn;ILjava/lang/String;IILjava/util/UUID;Leer;)Vintermediary method_1922Lnet/minecraft/class_355;method_1922(Lnet/minecraft/class_266;ILjava/lang/String;IILjava/util/UUID;Lnet/minecraft/class_4587;)Vnamed renderScoreboardObjectiveLnet/minecraft/client/gui/hud/PlayerListHud;renderScoreboardObjective(Lnet/minecraft/scoreboard/ScoreboardObjective;ILjava/lang/String;IILjava/util/UUID;Lnet/minecraft/client/util/math/MatrixStack;)V
-
renderHearts
- Mappings:
Namespace Name Mixin selector official aLemi;a(IIILjava/util/UUID;Leer;I)Vintermediary method_45590Lnet/minecraft/class_355;method_45590(IIILjava/util/UUID;Lnet/minecraft/class_4587;I)Vnamed renderHeartsLnet/minecraft/client/gui/hud/PlayerListHud;renderHearts(IIILjava/util/UUID;Lnet/minecraft/client/util/math/MatrixStack;I)V
-
setHeader
- Mappings:
Namespace Name Mixin selector official bLemi;b(Lsu;)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 aLemi;a()Vintermediary method_1920Lnet/minecraft/class_355;method_1920()Vnamed clearLnet/minecraft/client/gui/hud/PlayerListHud;clear()V
-