Package net.minecraft.client.gui.hud
Class PlayerListHud
java.lang.Object
net.minecraft.client.gui.DrawableHelper
net.minecraft.client.gui.hud.PlayerListHud
@Environment(CLIENT) public class PlayerListHud extends DrawableHelper
-
Nested Class Summary
Nested Classes Modifier and Type Class Description (package private) static classPlayerListHud.EntryOrderComparator -
Field Summary
Fields Modifier and Type Field Description private MinecraftClientclientprivate static Ordering<PlayerListEntry>ENTRY_ORDERINGprivate Textfooterprivate Textheaderprivate InGameHudinGameHudprivate longshowTimeprivate booleanvisibleFields inherited from class net.minecraft.client.gui.DrawableHelper
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE -
Constructor Summary
Constructors Constructor Description PlayerListHud(MinecraftClient client, InGameHud inGameHud) -
Method Summary
Modifier and Type Method Description private TextapplyGameModeFormatting(PlayerListEntry entry, MutableText name)Italicizes the given text if the given player is in spectator mode.voidclear()TextgetPlayerName(PlayerListEntry entry)voidrender(MatrixStack matrices, int int2, Scoreboard scoreboard, ScoreboardObjective objective)protected voidrenderLatencyIcon(MatrixStack matrices, int int2, int int3, int int4, PlayerListEntry entry)private voidrenderScoreboardObjective(ScoreboardObjective objective, int int2, String string, int int3, int int4, PlayerListEntry entry, MatrixStack matrices)voidsetFooter(Text footer)voidsetHeader(Text header)voidtick(boolean visible)Methods inherited from class net.minecraft.client.gui.DrawableHelper
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
-
Field Details
-
ENTRY_ORDERING
-
client
-
inGameHud
-
header
-
showTime
private long showTime -
visible
private boolean visible
-
-
Constructor Details
-
PlayerListHud
-
-
Method Details
-
getPlayerName
-
applyGameModeFormatting
Italicizes the given text if the given player is in spectator mode. -
tick
public void tick(boolean visible) -
render
public void render(MatrixStack matrices, int int2, Scoreboard scoreboard, @Nullable ScoreboardObjective objective) -
renderLatencyIcon
protected void renderLatencyIcon(MatrixStack matrices, int int2, int int3, int int4, PlayerListEntry entry) -
renderScoreboardObjective
private void renderScoreboardObjective(ScoreboardObjective objective, int int2, String string, int int3, int int4, PlayerListEntry entry, MatrixStack matrices) -
setHeader
-
clear
public void clear()
-