类 PlayerTabOverlay

java.lang.Object
net.minecraft.client.gui.components.PlayerTabOverlay

public class PlayerTabOverlay extends Object
  • 字段详细资料

    • PLAYER_COMPARATOR

      private static final Comparator<PlayerInfo> PLAYER_COMPARATOR
    • GUI_ICONS_LOCATION

      private static final ResourceLocation 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

      private final Minecraft minecraft
    • gui

      private final Gui gui
    • visible

      private boolean visible
    • healthStates

      private final Map<UUID,PlayerTabOverlay.HealthState> healthStates
  • 构造器详细资料

    • PlayerTabOverlay

      public PlayerTabOverlay(Minecraft pMinecraft, Gui pGui)
  • 方法详细资料

    • getNameForDisplay

      public Component getNameForDisplay(PlayerInfo p_94550_)
    • decorateName

      private Component decorateName(PlayerInfo pPlayerInfo, MutableComponent pName)
    • setVisible

      public void setVisible(boolean pVisible)
    • getPlayerInfos

      private List<PlayerInfo> 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)
    • setFooter

      public void setFooter(@Nullable Component pFooter)
    • setHeader

      public void setHeader(@Nullable Component pHeader)
    • reset

      public void reset()