Class SocialInteractionsPlayerListEntry

All Implemented Interfaces:
Element, ParentElement

@Environment(CLIENT)
public class SocialInteractionsPlayerListEntry
extends ElementListWidget.Entry<SocialInteractionsPlayerListEntry>
  • Field Details

    • HIDDEN_TEXT

      private static final Text HIDDEN_TEXT
    • BLOCKED_TEXT

      private static final Text BLOCKED_TEXT
    • OFFLINE_TEXT

      private static final Text OFFLINE_TEXT
    • HIDDEN_OFFLINE_TEXT

      private static final Text HIDDEN_OFFLINE_TEXT
    • BLOCKED_OFFLINE_TEXT

      private static final Text BLOCKED_OFFLINE_TEXT
    • BLACK_COLOR

      public static final int BLACK_COLOR
    • GRAY_COLOR

      public static final int GRAY_COLOR
    • DARK_GRAY_COLOR

      public static final int DARK_GRAY_COLOR
    • WHITE_COLOR

      public static final int WHITE_COLOR
    • LIGHT_GRAY_COLOR

      public static final int LIGHT_GRAY_COLOR
    • client

      private final MinecraftClient client
    • buttons

      private final List<Element> buttons
    • uuid

      private final UUID uuid
    • name

      private final String name
    • skinTexture

      private final Supplier<Identifier> skinTexture
    • offline

      private boolean offline
    • hideButton

      @Nullable private ButtonWidget hideButton
    • showButton

      @Nullable private ButtonWidget showButton
    • hideTooltip

      private final List<OrderedText> hideTooltip
    • showTooltip

      private final List<OrderedText> showTooltip
    • timeCounter

      private float timeCounter
  • Constructor Details

  • Method Details

    • render

      public void render​(MatrixStack matrices, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta)
      Renders an entry in a list.
      Specified by:
      render in class EntryListWidget.Entry<SocialInteractionsPlayerListEntry>
      Parameters:
      matrices - the matrix stack used for rendering
      index - the index of the entry
      y - the Y coordinate of the entry
      x - the X coordinate of the entry
      entryWidth - the width of the entry
      entryHeight - the height of the entry
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      hovered - whether the mouse is hovering over the entry
    • children

      public List<? extends Element> children()
      Gets a list of all child GUI elements.
    • getName

      public String getName()
    • getUuid

      public UUID getUuid()
    • setOffline

      public void setOffline​(boolean offline)
    • onButtonClick

      private void onButtonClick​(boolean showButtonVisible, Text chatMessage)
    • getNarrationMessage

      private MutableText getNarrationMessage​(MutableText text)
    • getStatusText

      private Text getStatusText()
    • renderTooltip

      private static void renderTooltip​(SocialInteractionsScreen screen, MatrixStack matrices, List<OrderedText> tooltip, int mouseX, int mouseY)