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)voidclear()TextgetPlayerName(PlayerListEntry entry)voidrender(MatrixStack matrixStack, int int2, Scoreboard scoreboard, ScoreboardObjective scoreboardObjective)protected voidrenderLatencyIcon(MatrixStack matrixStack, int int2, int int3, int int4, PlayerListEntry playerListEntry)private voidrenderScoreboardObjective(ScoreboardObjective scoreboardObjective, int int2, String string, int int3, int int4, PlayerListEntry playerListEntry, MatrixStack matrixStack)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, 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()
-