Class PlayerEntry

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, TabOrderedElement

public class PlayerEntry extends ContainerObjectSelectionList.Entry<PlayerEntry>
  • Field Details

    • DRAFT_REPORT_SPRITE

      private static final ResourceLocation DRAFT_REPORT_SPRITE
    • TOOLTIP_DELAY

      private static final Duration TOOLTIP_DELAY
    • REPORT_BUTTON_SPRITES

      private static final WidgetSprites REPORT_BUTTON_SPRITES
    • MUTE_BUTTON_SPRITES

      private static final WidgetSprites MUTE_BUTTON_SPRITES
    • UNMUTE_BUTTON_SPRITES

      private static final WidgetSprites UNMUTE_BUTTON_SPRITES
    • minecraft

      private final Minecraft minecraft
    • children

      private final List<AbstractWidget> children
    • id

      private final UUID id
    • playerName

      private final String playerName
    • skinGetter

      private final Supplier<PlayerSkin> skinGetter
    • isRemoved

      private boolean isRemoved
    • hasRecentMessages

      private boolean hasRecentMessages
    • reportingEnabled

      private final boolean reportingEnabled
    • hasDraftReport

      private final boolean hasDraftReport
    • chatReportable

      private final boolean chatReportable
    • hideButton

      @Nullable private Button hideButton
    • showButton

      @Nullable private Button showButton
    • reportButton

      @Nullable private Button reportButton
    • tooltipHoverTime

      private float tooltipHoverTime
    • HIDDEN

      private static final Component HIDDEN
    • BLOCKED

      private static final Component BLOCKED
    • OFFLINE

      private static final Component OFFLINE
    • HIDDEN_OFFLINE

      private static final Component HIDDEN_OFFLINE
    • BLOCKED_OFFLINE

      private static final Component BLOCKED_OFFLINE
    • REPORT_DISABLED_TOOLTIP

      private static final Component REPORT_DISABLED_TOOLTIP
    • HIDE_TEXT_TOOLTIP

      private static final Component HIDE_TEXT_TOOLTIP
    • SHOW_TEXT_TOOLTIP

      private static final Component SHOW_TEXT_TOOLTIP
    • REPORT_PLAYER_TOOLTIP

      private static final Component REPORT_PLAYER_TOOLTIP
    • SKIN_SIZE

      private static final int SKIN_SIZE
      See Also:
    • PADDING

      private static final int PADDING
      See Also:
    • SKIN_SHADE

      public static final int SKIN_SHADE
    • CHAT_TOGGLE_ICON_SIZE

      private static final int CHAT_TOGGLE_ICON_SIZE
      See Also:
    • BG_FILL

      public static final int BG_FILL
    • BG_FILL_REMOVED

      public static final int BG_FILL_REMOVED
    • PLAYERNAME_COLOR

      public static final int PLAYERNAME_COLOR
    • PLAYER_STATUS_COLOR

      public static final int PLAYER_STATUS_COLOR
  • Constructor Details

  • Method Details

    • createReportButtonTooltip

      private Tooltip createReportButtonTooltip()
    • render

      public void render(GuiGraphics p_282434_, int p_283281_, int p_281503_, int p_282112_, int p_282838_, int p_282747_, int p_282231_, int p_282048_, boolean p_281660_, float p_283055_)
      Specified by:
      render in class AbstractSelectionList.Entry<PlayerEntry>
    • children

      public List<? extends GuiEventListener> children()
    • narratables

      public List<? extends NarratableEntry> narratables()
      Specified by:
      narratables in class ContainerObjectSelectionList.Entry<PlayerEntry>
    • getPlayerName

      public String getPlayerName()
    • getPlayerId

      public UUID getPlayerId()
    • getSkinGetter

      public Supplier<PlayerSkin> getSkinGetter()
    • setRemoved

      public void setRemoved(boolean p_100620_)
    • isRemoved

      public boolean isRemoved()
    • setHasRecentMessages

      public void setHasRecentMessages(boolean p_240771_)
    • hasRecentMessages

      public boolean hasRecentMessages()
    • isChatReportable

      public boolean isChatReportable()
    • onHiddenOrShown

      private void onHiddenOrShown(boolean p_100597_, Component p_100598_)
    • updateHideAndShowButton

      private void updateHideAndShowButton(boolean p_262638_)
    • getEntryNarationMessage

      MutableComponent getEntryNarationMessage(MutableComponent p_100595_)
    • getStatusComponent

      private Component getStatusComponent()