Class PlayerEntry

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, TabOrderedElement

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(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()
    • 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()