Class PlayerTabOverlay
java.lang.Object
net.minecraft.client.gui.components.PlayerTabOverlay
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static classprivate static final record -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate @Nullable Componentprivate final Guiprivate @Nullable Componentprivate final Map<UUID, PlayerTabOverlay.HealthState> private static final Identifierprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final Identifierstatic final intprivate final Minecraftprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final Identifierprivate static final Comparator<PlayerInfo> private booleanWhether or not the playerlist is currently being rendered -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate ComponentdecorateName(PlayerInfo info, MutableComponent name) getNameForDisplay(PlayerInfo info) private List<PlayerInfo> voidrender(GuiGraphics graphics, int screenWidth, Scoreboard scoreboard, @Nullable Objective displayObjective) protected voidrenderPingIcon(GuiGraphics graphics, int slotWidth, int xo, int yo, PlayerInfo info) private voidrenderTablistHearts(int yo, int left, int right, UUID profileId, GuiGraphics graphics, int score) private voidrenderTablistScore(Objective displayObjective, int yo, PlayerTabOverlay.ScoreDisplayEntry entry, int left, int right, UUID profileId, GuiGraphics graphics) voidreset()voidvoidvoidsetVisible(boolean visible) Called by GuiIngame to update the information stored in the playerlist, does not actually render the list, however.
-
Field Details
-
PING_UNKNOWN_SPRITE
-
PING_1_SPRITE
-
PING_2_SPRITE
-
PING_3_SPRITE
-
PING_4_SPRITE
-
PING_5_SPRITE
-
HEART_CONTAINER_BLINKING_SPRITE
-
HEART_CONTAINER_SPRITE
-
HEART_FULL_BLINKING_SPRITE
-
HEART_HALF_BLINKING_SPRITE
-
HEART_ABSORBING_FULL_BLINKING_SPRITE
-
HEART_FULL_SPRITE
-
HEART_ABSORBING_HALF_BLINKING_SPRITE
-
HEART_HALF_SPRITE
-
PLAYER_COMPARATOR
-
MAX_ROWS_PER_COL
public static final int MAX_ROWS_PER_COL- See Also:
-
minecraft
-
gui
-
header
-
visible
private boolean visibleWhether or not the playerlist is currently being rendered -
healthStates
-
-
Constructor Details
-
PlayerTabOverlay
-
-
Method Details
-
getNameForDisplay
-
decorateName
-
setVisible
public void setVisible(boolean visible) Called by GuiIngame to update the information stored in the playerlist, does not actually render the list, however. -
getPlayerInfos
-
render
public void render(GuiGraphics graphics, int screenWidth, Scoreboard scoreboard, @Nullable Objective displayObjective) -
renderPingIcon
-
renderTablistScore
private void renderTablistScore(Objective displayObjective, int yo, PlayerTabOverlay.ScoreDisplayEntry entry, int left, int right, UUID profileId, GuiGraphics graphics) -
renderTablistHearts
private void renderTablistHearts(int yo, int left, int right, UUID profileId, GuiGraphics graphics, int score) -
setHeader
-
reset
public void reset()
-