Class PlayerTabOverlay
java.lang.Object
net.minecraft.client.gui.components.PlayerTabOverlay
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static class
(package private) static final record
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Component
private final Gui
private Component
private final Map
<UUID, PlayerTabOverlay.HealthState> private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
static final int
private final Minecraft
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final ResourceLocation
private static final Comparator
<PlayerInfo> private boolean
Weither or not the playerlist is currently being rendered -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate Component
decorateName
(PlayerInfo pPlayerInfo, MutableComponent pName) getNameForDisplay
(PlayerInfo p_94550_) private List
<PlayerInfo> void
render
(GuiGraphics pGuiGraphics, int pWidth, Scoreboard pScoreboard, Objective pObjective) protected void
renderPingIcon
(GuiGraphics pGuiGraphics, int pWidth, int pX, int pY, PlayerInfo pPlayerInfo) private void
renderTablistHearts
(int pY, int pMinX, int pMaxX, UUID pPlayerUuid, GuiGraphics pGuiGraphics, int pHealth) private void
renderTablistScore
(Objective pObjective, int pY, PlayerTabOverlay.ScoreDisplayEntry pDisplayEntry, int pMinX, int pMaxX, UUID pPlayerUuid, GuiGraphics pGuiGraphics) void
reset()
void
void
void
setVisible
(boolean pVisible) 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 visibleWeither or not the playerlist is currently being rendered -
healthStates
-
-
Constructor Details
-
PlayerTabOverlay
-
-
Method Details
-
getNameForDisplay
-
decorateName
-
setVisible
public void setVisible(boolean pVisible) Called by GuiIngame to update the information stored in the playerlist, does not actually render the list, however. -
getPlayerInfos
-
render
public void render(GuiGraphics pGuiGraphics, int pWidth, Scoreboard pScoreboard, @Nullable Objective pObjective) -
renderPingIcon
protected void renderPingIcon(GuiGraphics pGuiGraphics, int pWidth, int pX, int pY, PlayerInfo pPlayerInfo) -
renderTablistScore
private void renderTablistScore(Objective pObjective, int pY, PlayerTabOverlay.ScoreDisplayEntry pDisplayEntry, int pMinX, int pMaxX, UUID pPlayerUuid, GuiGraphics pGuiGraphics) -
renderTablistHearts
private void renderTablistHearts(int pY, int pMinX, int pMaxX, UUID pPlayerUuid, GuiGraphics pGuiGraphics, int pHealth) -
setHeader
-
reset
public void reset()
-