Class PlayerTabOverlay

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

public class PlayerTabOverlay extends Object
  • Field Details

    • PING_UNKNOWN_SPRITE

      private static final ResourceLocation PING_UNKNOWN_SPRITE
    • PING_1_SPRITE

      private static final ResourceLocation PING_1_SPRITE
    • PING_2_SPRITE

      private static final ResourceLocation PING_2_SPRITE
    • PING_3_SPRITE

      private static final ResourceLocation PING_3_SPRITE
    • PING_4_SPRITE

      private static final ResourceLocation PING_4_SPRITE
    • PING_5_SPRITE

      private static final ResourceLocation PING_5_SPRITE
    • HEART_CONTAINER_BLINKING_SPRITE

      private static final ResourceLocation HEART_CONTAINER_BLINKING_SPRITE
    • HEART_CONTAINER_SPRITE

      private static final ResourceLocation HEART_CONTAINER_SPRITE
    • HEART_FULL_BLINKING_SPRITE

      private static final ResourceLocation HEART_FULL_BLINKING_SPRITE
    • HEART_HALF_BLINKING_SPRITE

      private static final ResourceLocation HEART_HALF_BLINKING_SPRITE
    • HEART_ABSORBING_FULL_BLINKING_SPRITE

      private static final ResourceLocation HEART_ABSORBING_FULL_BLINKING_SPRITE
    • HEART_FULL_SPRITE

      private static final ResourceLocation HEART_FULL_SPRITE
    • HEART_ABSORBING_HALF_BLINKING_SPRITE

      private static final ResourceLocation HEART_ABSORBING_HALF_BLINKING_SPRITE
    • HEART_HALF_SPRITE

      private static final ResourceLocation HEART_HALF_SPRITE
    • PLAYER_COMPARATOR

      private static final Comparator<PlayerInfo> PLAYER_COMPARATOR
    • MAX_ROWS_PER_COL

      public static final int MAX_ROWS_PER_COL
      See Also:
    • minecraft

      private final Minecraft minecraft
    • gui

      private final Gui gui
    • visible

      private boolean visible
      Weither or not the playerlist is currently being rendered
    • healthStates

      private final Map<UUID,PlayerTabOverlay.HealthState> healthStates
  • Constructor Details

    • PlayerTabOverlay

      public PlayerTabOverlay(Minecraft pMinecraft, Gui pGui)
  • Method Details

    • getNameForDisplay

      public Component getNameForDisplay(PlayerInfo p_94550_)
    • decorateName

      private Component decorateName(PlayerInfo pPlayerInfo, MutableComponent pName)
    • 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

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

      public void setFooter(@Nullable Component pFooter)
    • setHeader

      public void setHeader(@Nullable Component pHeader)
    • reset

      public void reset()