Class PlayerTabOverlay
java.lang.Object
net.minecraft.client.gui.components.PlayerTabOverlay
-
Nested Class Summary
Modifier and TypeClassDescription(package private) static class
(package private) static final record
-
Field Summary
Modifier 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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate Component
decorateName
(PlayerInfo p_94552_, MutableComponent p_94553_) getNameForDisplay
(PlayerInfo p_94550_) private List
<PlayerInfo> void
render
(GuiGraphics p_281484_, int p_283602_, Scoreboard p_282338_, Objective p_282369_) protected void
renderPingIcon
(GuiGraphics p_283286_, int p_281809_, int p_282801_, int p_282223_, PlayerInfo p_282986_) private void
renderTablistHearts
(int p_282904_, int p_283173_, int p_282149_, UUID p_283348_, GuiGraphics p_281723_, int p_281354_) private void
renderTablistScore
(Objective p_283381_, int p_282557_, PlayerTabOverlay.ScoreDisplayEntry p_313810_, int p_283533_, int p_281254_, UUID p_283099_, GuiGraphics p_282280_) void
reset()
void
void
void
setVisible
(boolean p_94557_)
-
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 visible -
healthStates
-
-
Constructor Details
-
PlayerTabOverlay
-
-
Method Details
-
getNameForDisplay
-
decorateName
-
setVisible
public void setVisible(boolean p_94557_) -
getPlayerInfos
-
render
public void render(GuiGraphics p_281484_, int p_283602_, Scoreboard p_282338_, @Nullable Objective p_282369_) -
renderPingIcon
protected void renderPingIcon(GuiGraphics p_283286_, int p_281809_, int p_282801_, int p_282223_, PlayerInfo p_282986_) -
renderTablistScore
private void renderTablistScore(Objective p_283381_, int p_282557_, PlayerTabOverlay.ScoreDisplayEntry p_313810_, int p_283533_, int p_281254_, UUID p_283099_, GuiGraphics p_282280_) -
renderTablistHearts
private void renderTablistHearts(int p_282904_, int p_283173_, int p_282149_, UUID p_283348_, GuiGraphics p_281723_, int p_281354_) -
setHeader
-
reset
public void reset()
-