@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 |
BACKGROUND_TEXTURE, GUI_ICONS_TEXTURE, STATS_ICON_TEXTURE
Constructor and Description |
---|
PlayerListHud(MinecraftClient client,
InGameHud inGameHud) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
Text |
getPlayerName(PlayerListEntry playerEntry) |
void |
render(int width,
Scoreboard scoreboard,
ScoreboardObjective playerListScoreboardObjective) |
protected void |
renderLatencyIcon(int int2,
int int3,
int y,
PlayerListEntry playerEntry) |
private void |
renderScoreboardObjective(ScoreboardObjective scoreboardObjective,
int int2,
String string,
int int3,
int int4,
PlayerListEntry playerListEntry) |
void |
setFooter(Text footer) |
void |
setHeader(Text header) |
void |
tick(boolean visible) |
drawCenteredString, drawHorizontalLine, drawSprite, drawString, drawTexture, drawTexture, drawTexture, drawTexture, drawTexturedQuad, drawVerticalLine, fill, fill, fillGradient, getZOffset, 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 playerEntry)
public void tick(boolean visible)
public void render(int width, Scoreboard scoreboard, @Nullable ScoreboardObjective playerListScoreboardObjective)
protected void renderLatencyIcon(int int2, int int3, int y, PlayerListEntry playerEntry)
private void renderScoreboardObjective(ScoreboardObjective scoreboardObjective, int int2, String string, int int3, int int4, PlayerListEntry playerListEntry)
public void clear()