类 PlayerTabOverlay
java.lang.Object
net.minecraft.client.gui.components.PlayerTabOverlay
-
嵌套类概要
嵌套类 -
字段概要
字段修饰符和类型字段说明private Component
private final Gui
private static final ResourceLocation
private Component
private final Map<UUID,
PlayerTabOverlay.HealthState> static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
static final int
private final Minecraft
private static final Comparator<PlayerInfo>
private boolean
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明private 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 p_281809_, int p_282801_, int pY, PlayerInfo pPlayerInfo) private void
renderTablistHearts
(int pY, int p_283173_, int p_282149_, UUID pPlayerUuid, GuiGraphics pGuiGraphics, int pHealth) private void
renderTablistScore
(Objective pObjective, int pY, String pUsername, int p_283533_, int p_281254_, UUID pPlayerUuid, GuiGraphics pGuiGraphics) void
reset()
void
void
void
setVisible
(boolean pVisible)
-
字段详细资料
-
PLAYER_COMPARATOR
-
GUI_ICONS_LOCATION
-
MAX_ROWS_PER_COL
public static final int MAX_ROWS_PER_COL- 另请参阅:
-
HEART_EMPTY_CONTAINER
public static final int HEART_EMPTY_CONTAINER- 另请参阅:
-
HEART_EMPTY_CONTAINER_BLINKING
public static final int HEART_EMPTY_CONTAINER_BLINKING- 另请参阅:
-
HEART_FULL
public static final int HEART_FULL- 另请参阅:
-
HEART_HALF_FULL
public static final int HEART_HALF_FULL- 另请参阅:
-
HEART_GOLDEN_FULL
public static final int HEART_GOLDEN_FULL- 另请参阅:
-
HEART_GOLDEN_HALF_FULL
public static final int HEART_GOLDEN_HALF_FULL- 另请参阅:
-
HEART_GHOST_FULL
public static final int HEART_GHOST_FULL- 另请参阅:
-
HEART_GHOST_HALF_FULL
public static final int HEART_GHOST_HALF_FULL- 另请参阅:
-
minecraft
-
gui
-
header
-
visible
private boolean visible -
healthStates
-
-
构造器详细资料
-
PlayerTabOverlay
-
-
方法详细资料
-
getNameForDisplay
-
decorateName
-
setVisible
public void setVisible(boolean pVisible) -
getPlayerInfos
-
render
public void render(GuiGraphics pGuiGraphics, int pWidth, Scoreboard pScoreboard, @Nullable Objective pObjective) -
renderPingIcon
protected void renderPingIcon(GuiGraphics pGuiGraphics, int p_281809_, int p_282801_, int pY, PlayerInfo pPlayerInfo) -
renderTablistScore
private void renderTablistScore(Objective pObjective, int pY, String pUsername, int p_283533_, int p_281254_, UUID pPlayerUuid, GuiGraphics pGuiGraphics) -
renderTablistHearts
private void renderTablistHearts(int pY, int p_283173_, int p_282149_, UUID pPlayerUuid, GuiGraphics pGuiGraphics, int pHealth) -
setHeader
-
reset
public void reset()
-