Class ChatSelectionScreen.SelectionListWidget.MessageEntry

All Implemented Interfaces:
Element, Narratable
Enclosing class:
ChatSelectionScreen.SelectionListWidget

@Environment(CLIENT) public class ChatSelectionScreen.SelectionListWidget.MessageEntry extends ChatSelectionScreen.SelectionListWidget.Entry
Mappings:
Namespace Name
official esw$a$d
intermediary net/minecraft/class_7543$class_7544$class_7548
named net/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry
  • Field Details

    • CHECKMARK

      private static final Identifier CHECKMARK
      Mappings:
      Namespace Name Mixin selector
      official c Lesw$a$d;c:Lacf;
      intermediary field_39750 Lnet/minecraft/class_7543$class_7544$class_7548;field_39750:Lnet/minecraft/class_2960;
      named CHECKMARK Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;CHECKMARK:Lnet/minecraft/util/Identifier;
    • CHECKMARK_WIDTH

      private static final int CHECKMARK_WIDTH
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lesw$a$d;d:I
      intermediary field_39751 Lnet/minecraft/class_7543$class_7544$class_7548;field_39751:I
      named CHECKMARK_WIDTH Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;CHECKMARK_WIDTH:I
    • CHECKMARK_HEIGHT

      private static final int CHECKMARK_HEIGHT
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official e Lesw$a$d;e:I
      intermediary field_39752 Lnet/minecraft/class_7543$class_7544$class_7548;field_39752:I
      named CHECKMARK_HEIGHT Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;CHECKMARK_HEIGHT:I
    • CHAT_MESSAGE_LEFT_MARGIN

      private static final int CHAT_MESSAGE_LEFT_MARGIN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official f Lesw$a$d;f:I
      intermediary field_39599 Lnet/minecraft/class_7543$class_7544$class_7548;field_39599:I
      named CHAT_MESSAGE_LEFT_MARGIN Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;CHAT_MESSAGE_LEFT_MARGIN:I
    • INDICATOR_LEFT_MARGIN

      private static final int INDICATOR_LEFT_MARGIN
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official h Lesw$a$d;h:I
      intermediary field_39775 Lnet/minecraft/class_7543$class_7544$class_7548;field_39775:I
      named INDICATOR_LEFT_MARGIN Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;INDICATOR_LEFT_MARGIN:I
    • index

      private final int index
      Mappings:
      Namespace Name Mixin selector
      official i Lesw$a$d;i:I
      intermediary field_39600 Lnet/minecraft/class_7543$class_7544$class_7548;field_39600:I
      named index Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;index:I
    • truncatedContent

      private final StringVisitable truncatedContent
      Mappings:
      Namespace Name Mixin selector
      official j Lesw$a$d;j:Lsw;
      intermediary field_39601 Lnet/minecraft/class_7543$class_7544$class_7548;field_39601:Lnet/minecraft/class_5348;
      named truncatedContent Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;truncatedContent:Lnet/minecraft/text/StringVisitable;
    • narration

      private final Text narration
      Mappings:
      Namespace Name Mixin selector
      official k Lesw$a$d;k:Lss;
      intermediary field_39602 Lnet/minecraft/class_7543$class_7544$class_7548;field_39602:Lnet/minecraft/class_2561;
      named narration Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;narration:Lnet/minecraft/text/Text;
    • fullContent

      @Nullable private final @Nullable List<OrderedText> fullContent
      Mappings:
      Namespace Name Mixin selector
      official l Lesw$a$d;l:Ljava/util/List;
      intermediary field_39603 Lnet/minecraft/class_7543$class_7544$class_7548;field_39603:Ljava/util/List;
      named fullContent Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;fullContent:Ljava/util/List;
    • indicatorIcon

      @Nullable private final MessageIndicator.Icon indicatorIcon
      Mappings:
      Namespace Name Mixin selector
      official m Lesw$a$d;m:Lejb$a;
      intermediary field_39776 Lnet/minecraft/class_7543$class_7544$class_7548;field_39776:Lnet/minecraft/class_7591$class_7592;
      named indicatorIcon Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;indicatorIcon:Lnet/minecraft/client/gui/hud/MessageIndicator$Icon;
    • originalContent

      @Nullable private final @Nullable List<OrderedText> originalContent
      Mappings:
      Namespace Name Mixin selector
      official n Lesw$a$d;n:Ljava/util/List;
      intermediary field_39777 Lnet/minecraft/class_7543$class_7544$class_7548;field_39777:Ljava/util/List;
      named originalContent Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;originalContent:Ljava/util/List;
    • fromReportedPlayer

      private final boolean fromReportedPlayer
      Mappings:
      Namespace Name Mixin selector
      official o Lesw$a$d;o:Z
      intermediary field_39604 Lnet/minecraft/class_7543$class_7544$class_7548;field_39604:Z
      named fromReportedPlayer Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;fromReportedPlayer:Z
    • isChatMessage

      private final boolean isChatMessage
      Mappings:
      Namespace Name Mixin selector
      official p Lesw$a$d;p:Z
      intermediary field_39605 Lnet/minecraft/class_7543$class_7544$class_7548;field_39605:Z
      named isChatMessage Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;isChatMessage:Z
  • Constructor Details

    • MessageEntry

      public MessageEntry(int index, Text message, Text narration, @Nullable @Nullable MessageIndicator indicator, boolean fromReportedPlayer, boolean isChatMessage)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lesw$a$d;<init>(Lesw$a;ILss;Lss;Lejb;ZZ)V
      intermediary <init> Lnet/minecraft/class_7543$class_7544$class_7548;<init>(Lnet/minecraft/class_7543$class_7544;ILnet/minecraft/class_2561;Lnet/minecraft/class_2561;Lnet/minecraft/class_7591;ZZ)V
      named <init> Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;<init>(Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget;ILnet/minecraft/text/Text;Lnet/minecraft/text/Text;Lnet/minecraft/client/gui/hud/MessageIndicator;ZZ)V
  • 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<ChatSelectionScreen.SelectionListWidget.Entry>
      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
      Mappings:
      Namespace Name Mixin selector
      official a Leku$a;a(Leed;IIIIIIIZF)V
      intermediary method_25343 Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_4587;IIIIIIIZF)V
      named render Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/util/math/MatrixStack;IIIIIIIZF)V
    • renderIndicator

      private void renderIndicator(MatrixStack matrices, int x, int y, int entryHeight, int mouseX, int mouseY)
      Mappings:
      Namespace Name Mixin selector
      official a Lesw$a$d;a(Leed;IIIII)V
      intermediary method_44729 Lnet/minecraft/class_7543$class_7544$class_7548;method_44729(Lnet/minecraft/class_4587;IIIII)V
      named renderIndicator Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;renderIndicator(Lnet/minecraft/client/util/math/MatrixStack;IIIII)V
    • drawCheckmark

      private void drawCheckmark(MatrixStack matrices, int y, int x, int entryHeight)
      Mappings:
      Namespace Name Mixin selector
      official a Lesw$a$d;a(Leed;III)V
      intermediary method_44695 Lnet/minecraft/class_7543$class_7544$class_7548;method_44695(Lnet/minecraft/class_4587;III)V
      named drawCheckmark Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;drawCheckmark(Lnet/minecraft/client/util/math/MatrixStack;III)V
    • getTextWidth

      private int getTextWidth()
      Mappings:
      Namespace Name Mixin selector
      official e Lesw$a$d;e()I
      intermediary method_44666 Lnet/minecraft/class_7543$class_7544$class_7548;method_44666()I
      named getTextWidth Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;getTextWidth()I
    • getIndent

      private int getIndent()
      Mappings:
      Namespace Name Mixin selector
      official f Lesw$a$d;f()I
      intermediary method_44667 Lnet/minecraft/class_7543$class_7544$class_7548;method_44667()I
      named getIndent Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;getIndent()I
    • getNarration

      public Text getNarration()
      Overrides:
      getNarration in class ChatSelectionScreen.SelectionListWidget.Entry
      Mappings:
      Namespace Name Mixin selector
      official b Lelt$a;b()Lss;
      intermediary method_37006 Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;
      named getNarration Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget$Entry;getNarration()Lnet/minecraft/text/Text;
    • mouseClicked

      public boolean mouseClicked(double mouseX, double mouseY, int button)
      Callback for when a mouse button down event has been captured. The button number is identified by the constants in GLFW class.
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lemg;a(DDI)Z
      intermediary method_25402 Lnet/minecraft/class_364;method_25402(DDI)Z
      named mouseClicked Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
      Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see GLFW Modifier key flags)
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official a Lemg;a(III)Z
      intermediary method_25404 Lnet/minecraft/class_364;method_25404(III)Z
      named keyPressed Lnet/minecraft/client/gui/Element;keyPressed(III)Z
    • isSelected

      public boolean isSelected()
      Overrides:
      isSelected in class ChatSelectionScreen.SelectionListWidget.Entry
      Mappings:
      Namespace Name Mixin selector
      official a Lesw$a$b;a()Z
      intermediary method_44514 Lnet/minecraft/class_7543$class_7544$class_7546;method_44514()Z
      named isSelected Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$Entry;isSelected()Z
    • canSelect

      public boolean canSelect()
      Overrides:
      canSelect in class ChatSelectionScreen.SelectionListWidget.Entry
      Mappings:
      Namespace Name Mixin selector
      official c Lesw$a$b;c()Z
      intermediary method_44515 Lnet/minecraft/class_7543$class_7544$class_7546;method_44515()Z
      named canSelect Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$Entry;canSelect()Z
    • isHighlightedOnHover

      public boolean isHighlightedOnHover()
      Overrides:
      isHighlightedOnHover in class ChatSelectionScreen.SelectionListWidget.Entry
      Mappings:
      Namespace Name Mixin selector
      official d Lesw$a$b;d()Z
      intermediary method_44694 Lnet/minecraft/class_7543$class_7544$class_7546;method_44694()Z
      named isHighlightedOnHover Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$Entry;isHighlightedOnHover()Z
    • toggle

      private boolean toggle()
      Mappings:
      Namespace Name Mixin selector
      official g Lesw$a$d;g()Z
      intermediary method_44517 Lnet/minecraft/class_7543$class_7544$class_7548;method_44517()Z
      named toggle Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;toggle()Z