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
- Mappings:
Namespace Name official dsj
intermediary net/minecraft/class_355
named net/minecraft/client/gui/hud/PlayerListHud
-
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 matrices, int int2, Scoreboard scoreboard, ScoreboardObjective objective)
protected void
renderLatencyIcon(MatrixStack matrices, int int2, int int3, int int4, PlayerListEntry playerListEntry)
private void
renderScoreboardObjective(ScoreboardObjective objective, 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
- Mappings:
Namespace Name Mixin selector official a
Ldsj;a:Lcom/google/common/collect/Ordering;
intermediary field_2156
Lnet/minecraft/class_355;field_2156:Lcom/google/common/collect/Ordering;
named ENTRY_ORDERING
Lnet/minecraft/client/gui/hud/PlayerListHud;ENTRY_ORDERING:Lcom/google/common/collect/Ordering;
-
client
- Mappings:
Namespace Name Mixin selector official b
Ldsj;b:Ldqk;
intermediary field_2155
Lnet/minecraft/class_355;field_2155:Lnet/minecraft/class_310;
named client
Lnet/minecraft/client/gui/hud/PlayerListHud;client:Lnet/minecraft/client/MinecraftClient;
-
inGameHud
- Mappings:
Namespace Name Mixin selector official c
Ldsj;c:Ldrg;
intermediary field_2157
Lnet/minecraft/class_355;field_2157:Lnet/minecraft/class_329;
named inGameHud
Lnet/minecraft/client/gui/hud/PlayerListHud;inGameHud:Lnet/minecraft/client/gui/hud/InGameHud;
-
header
- Mappings:
Namespace Name Mixin selector official e
Ldsj;e:Loi;
intermediary field_2153
Lnet/minecraft/class_355;field_2153:Lnet/minecraft/class_2561;
named header
Lnet/minecraft/client/gui/hud/PlayerListHud;header:Lnet/minecraft/text/Text;
-
showTime
private long showTime- Mappings:
Namespace Name Mixin selector official i
Ldsj;i:J
intermediary field_2152
Lnet/minecraft/class_355;field_2152:J
named showTime
Lnet/minecraft/client/gui/hud/PlayerListHud;showTime:J
-
visible
private boolean visible- Mappings:
Namespace Name Mixin selector official j
Ldsj;j:Z
intermediary field_2158
Lnet/minecraft/class_355;field_2158:Z
named visible
Lnet/minecraft/client/gui/hud/PlayerListHud;visible:Z
-
-
Constructor Details
-
PlayerListHud
- Mappings:
Namespace Name Mixin selector official <init>
Ldsj;<init>(Ldqk;Ldrg;)V
intermediary <init>
Lnet/minecraft/class_355;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_329;)V
named <init>
Lnet/minecraft/client/gui/hud/PlayerListHud;<init>(Lnet/minecraft/client/MinecraftClient;Lnet/minecraft/client/gui/hud/InGameHud;)V
-
-
Method Details
-
getPlayerName
- Mappings:
Namespace Name Mixin selector official a
Ldsj;a(Leec;)Loi;
intermediary method_1918
Lnet/minecraft/class_355;method_1918(Lnet/minecraft/class_640;)Lnet/minecraft/class_2561;
named getPlayerName
Lnet/minecraft/client/gui/hud/PlayerListHud;getPlayerName(Lnet/minecraft/client/network/PlayerListEntry;)Lnet/minecraft/text/Text;
-
applyGameModeFormatting
- Mappings:
Namespace Name Mixin selector official a
Ldsj;a(Leec;Loo;)Loi;
intermediary method_27538
Lnet/minecraft/class_355;method_27538(Lnet/minecraft/class_640;Lnet/minecraft/class_5250;)Lnet/minecraft/class_2561;
named applyGameModeFormatting
Lnet/minecraft/client/gui/hud/PlayerListHud;applyGameModeFormatting(Lnet/minecraft/client/network/PlayerListEntry;Lnet/minecraft/text/MutableText;)Lnet/minecraft/text/Text;
-
tick
public void tick(boolean visible)- Mappings:
Namespace Name Mixin selector official a
Ldsj;a(Z)V
intermediary method_1921
Lnet/minecraft/class_355;method_1921(Z)V
named tick
Lnet/minecraft/client/gui/hud/PlayerListHud;tick(Z)V
-
render
public void render(MatrixStack matrices, int int2, Scoreboard scoreboard, @Nullable ScoreboardObjective objective)- Mappings:
Namespace Name Mixin selector official a
Ldsj;a(Ldlr;ILdjs;Ldjp;)V
intermediary method_1919
Lnet/minecraft/class_355;method_1919(Lnet/minecraft/class_4587;ILnet/minecraft/class_269;Lnet/minecraft/class_266;)V
named render
Lnet/minecraft/client/gui/hud/PlayerListHud;render(Lnet/minecraft/client/util/math/MatrixStack;ILnet/minecraft/scoreboard/Scoreboard;Lnet/minecraft/scoreboard/ScoreboardObjective;)V
-
renderLatencyIcon
protected void renderLatencyIcon(MatrixStack matrices, int int2, int int3, int int4, PlayerListEntry playerListEntry)- Mappings:
Namespace Name Mixin selector official a
Ldsj;a(Ldlr;IIILeec;)V
intermediary method_1923
Lnet/minecraft/class_355;method_1923(Lnet/minecraft/class_4587;IIILnet/minecraft/class_640;)V
named renderLatencyIcon
Lnet/minecraft/client/gui/hud/PlayerListHud;renderLatencyIcon(Lnet/minecraft/client/util/math/MatrixStack;IIILnet/minecraft/client/network/PlayerListEntry;)V
-
renderScoreboardObjective
private void renderScoreboardObjective(ScoreboardObjective objective, int int2, String string, int int3, int int4, PlayerListEntry playerListEntry, MatrixStack matrixStack)- Mappings:
Namespace Name Mixin selector official a
Ldsj;a(Ldjp;ILjava/lang/String;IILeec;Ldlr;)V
intermediary method_1922
Lnet/minecraft/class_355;method_1922(Lnet/minecraft/class_266;ILjava/lang/String;IILnet/minecraft/class_640;Lnet/minecraft/class_4587;)V
named renderScoreboardObjective
Lnet/minecraft/client/gui/hud/PlayerListHud;renderScoreboardObjective(Lnet/minecraft/scoreboard/ScoreboardObjective;ILjava/lang/String;IILnet/minecraft/client/network/PlayerListEntry;Lnet/minecraft/client/util/math/MatrixStack;)V
-
setHeader
- Mappings:
Namespace Name Mixin selector official b
Ldsj;b(Loi;)V
intermediary method_1925
Lnet/minecraft/class_355;method_1925(Lnet/minecraft/class_2561;)V
named setHeader
Lnet/minecraft/client/gui/hud/PlayerListHud;setHeader(Lnet/minecraft/text/Text;)V
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector official a
Ldsj;a()V
intermediary method_1920
Lnet/minecraft/class_355;method_1920()V
named clear
Lnet/minecraft/client/gui/hud/PlayerListHud;clear()V
-