@Environment(value=CLIENT) public class PlayerListHud extends DrawableHelper
Modifier and Type | Class and Description |
---|---|
(package private) static class |
PlayerListHud.EntryOrderComparator |
Modifier and Type | Field and 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 |
GUI_ICONS_TEXTURE, OPTIONS_BACKGROUND_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
PlayerListHud(MinecraftClient client,
InGameHud inGameHud) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Text |
getPlayerName(PlayerListEntry playerListEntry) |
private Text |
method_27538(PlayerListEntry playerListEntry,
MutableText mutableText) |
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) |
drawCenteredString, drawCenteredText, drawHorizontalLine, drawSprite, drawStringWithShadow, drawTexture, drawTexture, drawTexture, drawTexture, drawTextWithShadow, drawVerticalLine, fill, fillGradient, fillGradient, getZOffset, method_29343, setZOffset
private static final Ordering<PlayerListEntry> ENTRY_ORDERING
private final MinecraftClient client
private final InGameHud inGameHud
private Text footer
private Text header
private long showTime
private boolean visible
public PlayerListHud(MinecraftClient client, InGameHud inGameHud)
public Text getPlayerName(PlayerListEntry playerListEntry)
private Text method_27538(PlayerListEntry playerListEntry, MutableText mutableText)
public void tick(boolean visible)
public void render(MatrixStack matrixStack, int int2, Scoreboard scoreboard, @Nullable 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)
public void clear()