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 class
PlayerListHud.EntryOrderComparator
-
Field Summary
Fields Modifier and Type Field Description private MinecraftClient
client
private static Ordering<PlayerListEntry>
ENTRY_ORDERING
private Text
footer
private Text
header
private InGameHud
inGameHud
private long
showTime
private boolean
visible
Fields 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 Text
applyGameModeFormatting(PlayerListEntry entry, MutableText name)
Italicizes the given text if the given player is in spectator mode.void
clear()
Text
getPlayerName(PlayerListEntry entry)
void
render(MatrixStack matrices, int int2, Scoreboard scoreboard, ScoreboardObjective objective)
protected void
renderLatencyIcon(MatrixStack matrices, int int2, int int3, int int4, PlayerListEntry entry)
private void
renderScoreboardObjective(ScoreboardObjective objective, int int2, String string, int int3, int int4, PlayerListEntry entry, MatrixStack matrices)
void
setFooter(Text footer)
void
setHeader(Text header)
void
tick(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()
-