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 dwjintermediary net/minecraft/class_355named net/minecraft/client/gui/hud/PlayerListHud
-
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_ORDERINGstatic intfield_32205static intfield_32206static intfield_32207static intfield_32208static intfield_32209static intfield_32210static intfield_32211static intfield_32212static intfield_32213private 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)Italicizes the given text if the given player is in spectator mode.voidclear()TextgetPlayerName(PlayerListEntry entry)voidrender(MatrixStack matrices, int int2, Scoreboard scoreboard, @Nullable ScoreboardObjective objective)protected voidrenderLatencyIcon(MatrixStack matrices, int int2, int int3, int int4, PlayerListEntry entry)private voidrenderScoreboardObjective(ScoreboardObjective objective, int int2, String string, int int3, int int4, PlayerListEntry entry, MatrixStack matrices)voidsetFooter(@Nullable Text footer)voidsetHeader(@Nullable 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, method_35719, method_35720, setZOffset
-
Field Details
-
ENTRY_ORDERING
- Mappings:
Namespace Name Mixin selector official mLdwj;m:Lcom/google/common/collect/Ordering;intermediary field_2156Lnet/minecraft/class_355;field_2156:Lcom/google/common/collect/Ordering;named ENTRY_ORDERINGLnet/minecraft/client/gui/hud/PlayerListHud;ENTRY_ORDERING:Lcom/google/common/collect/Ordering;
-
field_32205
public static final int field_32205- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official aLdwj;a:Iintermediary field_32205Lnet/minecraft/class_355;field_32205:Inamed field_32205Lnet/minecraft/client/gui/hud/PlayerListHud;field_32205:I
-
field_32206
public static final int field_32206- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official bLdwj;b:Iintermediary field_32206Lnet/minecraft/class_355;field_32206:Inamed field_32206Lnet/minecraft/client/gui/hud/PlayerListHud;field_32206:I
-
field_32207
public static final int field_32207- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official cLdwj;c:Iintermediary field_32207Lnet/minecraft/class_355;field_32207:Inamed field_32207Lnet/minecraft/client/gui/hud/PlayerListHud;field_32207:I
-
field_32208
public static final int field_32208- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official dLdwj;d:Iintermediary field_32208Lnet/minecraft/class_355;field_32208:Inamed field_32208Lnet/minecraft/client/gui/hud/PlayerListHud;field_32208:I
-
field_32209
public static final int field_32209- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official eLdwj;e:Iintermediary field_32209Lnet/minecraft/class_355;field_32209:Inamed field_32209Lnet/minecraft/client/gui/hud/PlayerListHud;field_32209:I
-
field_32210
public static final int field_32210- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official iLdwj;i:Iintermediary field_32210Lnet/minecraft/class_355;field_32210:Inamed field_32210Lnet/minecraft/client/gui/hud/PlayerListHud;field_32210:I
-
field_32211
public static final int field_32211- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official jLdwj;j:Iintermediary field_32211Lnet/minecraft/class_355;field_32211:Inamed field_32211Lnet/minecraft/client/gui/hud/PlayerListHud;field_32211:I
-
field_32212
public static final int field_32212- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official kLdwj;k:Iintermediary field_32212Lnet/minecraft/class_355;field_32212:Inamed field_32212Lnet/minecraft/client/gui/hud/PlayerListHud;field_32212:I
-
field_32213
public static final int field_32213- See Also:
- Constant Field Values
- Mappings:
Namespace Name Mixin selector official lLdwj;l:Iintermediary field_32213Lnet/minecraft/class_355;field_32213:Inamed field_32213Lnet/minecraft/client/gui/hud/PlayerListHud;field_32213:I
-
client
- Mappings:
Namespace Name Mixin selector official nLdwj;n:Lduk;intermediary field_2155Lnet/minecraft/class_355;field_2155:Lnet/minecraft/class_310;named clientLnet/minecraft/client/gui/hud/PlayerListHud;client:Lnet/minecraft/client/MinecraftClient;
-
inGameHud
- Mappings:
Namespace Name Mixin selector official oLdwj;o:Ldvg;intermediary field_2157Lnet/minecraft/class_355;field_2157:Lnet/minecraft/class_329;named inGameHudLnet/minecraft/client/gui/hud/PlayerListHud;inGameHud:Lnet/minecraft/client/gui/hud/InGameHud;
-
header
- Mappings:
Namespace Name Mixin selector official qLdwj;q:Lon;intermediary field_2153Lnet/minecraft/class_355;field_2153:Lnet/minecraft/class_2561;named headerLnet/minecraft/client/gui/hud/PlayerListHud;header:Lnet/minecraft/text/Text;
-
showTime
private long showTime- Mappings:
Namespace Name Mixin selector official rLdwj;r:Jintermediary field_2152Lnet/minecraft/class_355;field_2152:Jnamed showTimeLnet/minecraft/client/gui/hud/PlayerListHud;showTime:J
-
visible
private boolean visible- Mappings:
Namespace Name Mixin selector official sLdwj;s:Zintermediary field_2158Lnet/minecraft/class_355;field_2158:Znamed visibleLnet/minecraft/client/gui/hud/PlayerListHud;visible:Z
-
-
Constructor Details
-
PlayerListHud
- Mappings:
Namespace Name Mixin selector official <init>Ldwj;<init>(Lduk;Ldvg;)Vintermediary <init>Lnet/minecraft/class_355;<init>(Lnet/minecraft/class_310;Lnet/minecraft/class_329;)Vnamed <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 aLdwj;a(Lehz;)Lon;intermediary method_1918Lnet/minecraft/class_355;method_1918(Lnet/minecraft/class_640;)Lnet/minecraft/class_2561;named getPlayerNameLnet/minecraft/client/gui/hud/PlayerListHud;getPlayerName(Lnet/minecraft/client/network/PlayerListEntry;)Lnet/minecraft/text/Text;
-
applyGameModeFormatting
Italicizes the given text if the given player is in spectator mode.- Mappings:
Namespace Name Mixin selector official aLdwj;a(Lehz;Lot;)Lon;intermediary method_27538Lnet/minecraft/class_355;method_27538(Lnet/minecraft/class_640;Lnet/minecraft/class_5250;)Lnet/minecraft/class_2561;named applyGameModeFormattingLnet/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 aLdwj;a(Z)Vintermediary method_1921Lnet/minecraft/class_355;method_1921(Z)Vnamed tickLnet/minecraft/client/gui/hud/PlayerListHud;tick(Z)V
-
render
public void render(MatrixStack matrices, int int2, Scoreboard scoreboard, @Nullable @Nullable ScoreboardObjective objective)- Mappings:
Namespace Name Mixin selector official aLdwj;a(Ldpg;ILdmw;Ldmt;)Vintermediary method_1919Lnet/minecraft/class_355;method_1919(Lnet/minecraft/class_4587;ILnet/minecraft/class_269;Lnet/minecraft/class_266;)Vnamed renderLnet/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 entry)- Mappings:
Namespace Name Mixin selector official aLdwj;a(Ldpg;IIILehz;)Vintermediary method_1923Lnet/minecraft/class_355;method_1923(Lnet/minecraft/class_4587;IIILnet/minecraft/class_640;)Vnamed renderLatencyIconLnet/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 entry, MatrixStack matrices)- Mappings:
Namespace Name Mixin selector official aLdwj;a(Ldmt;ILjava/lang/String;IILehz;Ldpg;)Vintermediary method_1922Lnet/minecraft/class_355;method_1922(Lnet/minecraft/class_266;ILjava/lang/String;IILnet/minecraft/class_640;Lnet/minecraft/class_4587;)Vnamed renderScoreboardObjectiveLnet/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 bLdwj;b(Lon;)Vintermediary method_1925Lnet/minecraft/class_355;method_1925(Lnet/minecraft/class_2561;)Vnamed setHeaderLnet/minecraft/client/gui/hud/PlayerListHud;setHeader(Lnet/minecraft/text/Text;)V
-
clear
public void clear()- Mappings:
Namespace Name Mixin selector official aLdwj;a()Vintermediary method_1920Lnet/minecraft/class_355;method_1920()Vnamed clearLnet/minecraft/client/gui/hud/PlayerListHud;clear()V
-