Class PlayerEntry

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener

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

    • REPORT_BUTTON_LOCATION

      private static final ResourceLocation REPORT_BUTTON_LOCATION
    • TOOLTIP_DELAY

      private static final int TOOLTIP_DELAY
      See Also:
    • 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<ResourceLocation> skinGetter
    • isRemoved

      private boolean isRemoved
    • hasRecentMessages

      private boolean hasRecentMessages
    • reportingEnabled

      private final boolean reportingEnabled
    • playerReportable

      private final boolean playerReportable
    • hasDraftReport

      private final boolean hasDraftReport
    • 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
    • NOT_REPORTABLE_TOOLTIP

      private static final Component NOT_REPORTABLE_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:
    • CHAT_TOGGLE_ICON_SIZE

      private static final int CHAT_TOGGLE_ICON_SIZE
      See Also:
    • CHAT_TOGGLE_ICON_X

      private static final int CHAT_TOGGLE_ICON_X
      See Also:
    • CHAT_TOGGLE_ICON_Y

      private static final int CHAT_TOGGLE_ICON_Y
      See Also:
    • SKIN_SHADE

      public static final int SKIN_SHADE
    • 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(PoseStack p_100558_, int p_100559_, int p_100560_, int p_100561_, int p_100562_, int p_100563_, int p_100564_, int p_100565_, boolean p_100566_, float p_100567_)
      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()
    • setRemoved

      public void setRemoved(boolean p_100620_)
    • isRemoved

      public boolean isRemoved()
    • setHasRecentMessages

      public void setHasRecentMessages(boolean p_240771_)
    • hasRecentMessages

      public boolean hasRecentMessages()
    • 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()