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)
void
clear()
Text
getPlayerName(PlayerListEntry entry)
void
render(MatrixStack matrixStack, int int2, Scoreboard scoreboard, ScoreboardObjective scoreboardObjective)
protected void
renderLatencyIcon(MatrixStack matrixStack, int int2, int int3, int int4, PlayerListEntry playerListEntry)
private void
renderScoreboardObjective(ScoreboardObjective scoreboardObjective, int int2, String string, int int3, int int4, PlayerListEntry playerListEntry, MatrixStack matrixStack)
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, method_33284, setZOffset
-
Field Details
-
ENTRY_ORDERING
-
client
-
inGameHud
-
header
-
showTime
private long showTime -
visible
private boolean visible
-
-
Constructor Details
-
PlayerListHud
-
-
Method Details
-
getPlayerName
-
applyGameModeFormatting
-
tick
public void tick(boolean visible) -
render
public void render(MatrixStack matrixStack, int int2, Scoreboard scoreboard, @Nullable ScoreboardObjective scoreboardObjective) -
renderLatencyIcon
protected void renderLatencyIcon(MatrixStack matrixStack, int int2, int int3, int int4, PlayerListEntry playerListEntry) -
renderScoreboardObjective
private void renderScoreboardObjective(ScoreboardObjective scoreboardObjective, int int2, String string, int int3, int int4, PlayerListEntry playerListEntry, MatrixStack matrixStack) -
setHeader
-
clear
public void clear()
-