Class ChatSelectionScreen.SelectionListWidget.MessageEntry
java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<ChatSelectionScreen.SelectionListWidget.Entry>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry<ChatSelectionScreen.SelectionListWidget.Entry>
net.minecraft.client.gui.screen.report.ChatSelectionScreen.SelectionListWidget.Entry
net.minecraft.client.gui.screen.report.ChatSelectionScreen.SelectionListWidget.MessageEntry
- All Implemented Interfaces:
- Element,- Narratable,- Navigable
- Enclosing class:
- ChatSelectionScreen.SelectionListWidget
@Environment(CLIENT)
public class ChatSelectionScreen.SelectionListWidget.MessageEntry
extends ChatSelectionScreen.SelectionListWidget.Entry
- Mappings:
- Namespace - Name - named - net/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry- intermediary - net/minecraft/class_7543$class_7544$class_7548- official - fyv$a$d
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate static final intprivate static final intprivate static final intprivate final booleanprivate final @Nullable List<OrderedText> private final intprivate static final intprivate final MessageIndicator.Iconprivate final booleanprivate final Textprivate final @Nullable List<OrderedText> private final StringVisitableFields inherited from interface net.minecraft.client.gui.ElementMAX_DOUBLE_CLICK_INTERVAL
- 
Constructor SummaryConstructorsConstructorDescriptionMessageEntry(int index, Text message, Text narration, @Nullable MessageIndicator indicator, boolean fromReportedPlayer, boolean isChatMessage) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanprivate voiddrawCheckmark(DrawContext context, int y, int x, int entryHeight) private intprivate intbooleanbooleanbooleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.booleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.voidrender(DrawContext context, int index, int y, int x, int entryWidth, int entryHeight, int mouseX, int mouseY, boolean hovered, float tickDelta) Renders an entry in a list.private voidrenderIndicator(DrawContext context, int x, int y, int entryHeight, int mouseX, int mouseY) private booleantoggle()Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.EntryappendNarrationsMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget.EntrydrawBorder, isFocused, isMouseOver, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.ElementcharTyped, getBorder, getFocusedPath, getNavigationFocus, getNavigationPath, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.navigation.NavigablegetNavigationOrder
- 
Field Details- 
CHECKMARK_WIDTHprivate static final int CHECKMARK_WIDTH- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - CHECKMARK_WIDTH- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;CHECKMARK_WIDTH:I- intermediary - field_39751- Lnet/minecraft/class_7543$class_7544$class_7548;field_39751:I- official - b- Lfyv$a$d;b:I
 
- 
CHECKMARK_HEIGHTprivate static final int CHECKMARK_HEIGHT- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - CHECKMARK_HEIGHT- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;CHECKMARK_HEIGHT:I- intermediary - field_39752- Lnet/minecraft/class_7543$class_7544$class_7548;field_39752:I- official - c- Lfyv$a$d;c:I
 
- 
CHAT_MESSAGE_LEFT_MARGINprivate static final int CHAT_MESSAGE_LEFT_MARGIN- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - CHAT_MESSAGE_LEFT_MARGIN- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;CHAT_MESSAGE_LEFT_MARGIN:I- intermediary - field_39599- Lnet/minecraft/class_7543$class_7544$class_7548;field_39599:I- official - d- Lfyv$a$d;d:I
 
- 
INDICATOR_LEFT_MARGINprivate static final int INDICATOR_LEFT_MARGIN- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - INDICATOR_LEFT_MARGIN- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;INDICATOR_LEFT_MARGIN:I- intermediary - field_39775- Lnet/minecraft/class_7543$class_7544$class_7548;field_39775:I- official - e- Lfyv$a$d;e:I
 
- 
indexprivate final int index- Mappings:
- Namespace - Name - Mixin selector - named - index- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;index:I- intermediary - field_39600- Lnet/minecraft/class_7543$class_7544$class_7548;field_39600:I- official - f- Lfyv$a$d;f:I
 
- 
truncatedContent- Mappings:
- Namespace - Name - Mixin selector - named - truncatedContent- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;truncatedContent:Lnet/minecraft/text/StringVisitable;- intermediary - field_39601- Lnet/minecraft/class_7543$class_7544$class_7548;field_39601:Lnet/minecraft/class_5348;- official - g- Lfyv$a$d;g:Lwu;
 
- 
narration- Mappings:
- Namespace - Name - Mixin selector - named - narration- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;narration:Lnet/minecraft/text/Text;- intermediary - field_39602- Lnet/minecraft/class_7543$class_7544$class_7548;field_39602:Lnet/minecraft/class_2561;- official - h- Lfyv$a$d;h:Lwp;
 
- 
fullContent- Mappings:
- Namespace - Name - Mixin selector - named - fullContent- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;fullContent:Ljava/util/List;- intermediary - field_39603- Lnet/minecraft/class_7543$class_7544$class_7548;field_39603:Ljava/util/List;- official - i- Lfyv$a$d;i:Ljava/util/List;
 
- 
indicatorIcon- Mappings:
- Namespace - Name - Mixin selector - named - indicatorIcon- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;indicatorIcon:Lnet/minecraft/client/gui/hud/MessageIndicator$Icon;- intermediary - field_39776- Lnet/minecraft/class_7543$class_7544$class_7548;field_39776:Lnet/minecraft/class_7591$class_7592;- official - j- Lfyv$a$d;j:Lfle$a;
 
- 
originalContent- Mappings:
- Namespace - Name - Mixin selector - named - originalContent- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;originalContent:Ljava/util/List;- intermediary - field_39777- Lnet/minecraft/class_7543$class_7544$class_7548;field_39777:Ljava/util/List;- official - k- Lfyv$a$d;k:Ljava/util/List;
 
- 
fromReportedPlayerprivate final boolean fromReportedPlayer- Mappings:
- Namespace - Name - Mixin selector - named - fromReportedPlayer- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;fromReportedPlayer:Z- intermediary - field_39604- Lnet/minecraft/class_7543$class_7544$class_7548;field_39604:Z- official - l- Lfyv$a$d;l:Z
 
- 
isChatMessageprivate final boolean isChatMessage- Mappings:
- Namespace - Name - Mixin selector - named - isChatMessage- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;isChatMessage:Z- intermediary - field_39605- Lnet/minecraft/class_7543$class_7544$class_7548;field_39605:Z- official - m- Lfyv$a$d;m:Z
 
 
- 
- 
Constructor Details- 
MessageEntrypublic MessageEntry(int index, Text message, Text narration, @Nullable @Nullable MessageIndicator indicator, boolean fromReportedPlayer, boolean isChatMessage) - Mappings:
- Namespace - Name - Mixin selector - 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- 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- official - <init>- Lfyv$a$d;<init>(Lfyv$a;ILwp;Lwp;Lfle;ZZ)V
 
 
- 
- 
Method Details- 
renderpublic void render(DrawContext context, 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:
- renderin class- EntryListWidget.Entry<ChatSelectionScreen.SelectionListWidget.Entry>
- Parameters:
- 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 - named - render- Lnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIIIIIIZF)V- intermediary - method_25343- Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIIIIIIZF)V- official - a- Lfon$a;a(Lfof;IIIIIIIZF)V
 
- 
renderIndicatorprivate void renderIndicator(DrawContext context, int x, int y, int entryHeight, int mouseX, int mouseY) - Mappings:
- Namespace - Name - Mixin selector - named - renderIndicator- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;renderIndicator(Lnet/minecraft/client/gui/DrawContext;IIIII)V- intermediary - method_44729- Lnet/minecraft/class_7543$class_7544$class_7548;method_44729(Lnet/minecraft/class_332;IIIII)V- official - a- Lfyv$a$d;a(Lfof;IIIII)V
 
- 
drawCheckmark- Mappings:
- Namespace - Name - Mixin selector - named - drawCheckmark- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;drawCheckmark(Lnet/minecraft/client/gui/DrawContext;III)V- intermediary - method_44695- Lnet/minecraft/class_7543$class_7544$class_7548;method_44695(Lnet/minecraft/class_332;III)V- official - a- Lfyv$a$d;a(Lfof;III)V
 
- 
getTextWidthprivate int getTextWidth()- Mappings:
- Namespace - Name - Mixin selector - named - getTextWidth- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;getTextWidth()I- intermediary - method_44666- Lnet/minecraft/class_7543$class_7544$class_7548;method_44666()I- official - e- Lfyv$a$d;e()I
 
- 
getIndentprivate int getIndent()- Mappings:
- Namespace - Name - Mixin selector - named - getIndent- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;getIndent()I- intermediary - method_44667- Lnet/minecraft/class_7543$class_7544$class_7548;method_44667()I- official - g- Lfyv$a$d;g()I
 
- 
getNarration- Overrides:
- getNarrationin class- ChatSelectionScreen.SelectionListWidget.Entry
- Mappings:
- Namespace - Name - Mixin selector - named - getNarration- Lnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget$Entry;getNarration()Lnet/minecraft/text/Text;- intermediary - method_37006- Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;- official - a- Lfpq$a;a()Lwp;
 
- 
mouseClickedpublic 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 inGLFWclass.- Specified by:
- mouseClickedin interface- Element
- Overrides:
- mouseClickedin class- ChatSelectionScreen.SelectionListWidget.Entry
- Parameters:
- mouseX- the X coordinate of the mouse
- mouseY- the Y coordinate of the mouse
- button- the mouse button number
- Returns:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - mouseClicked- Lnet/minecraft/client/gui/Element;mouseClicked(DDI)Z- intermediary - method_25402- Lnet/minecraft/class_364;method_25402(DDI)Z- official - a- Lfqr;a(DDI)Z
 
- 
keyPressedpublic 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 inGLFWclass.- Parameters:
- keyCode- the named key code of the event as described in the- GLFWclass
- 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:
- trueto indicate that the event handling is successful/valid
- See Also:
- Mappings:
- Namespace - Name - Mixin selector - named - keyPressed- Lnet/minecraft/client/gui/Element;keyPressed(III)Z- intermediary - method_25404- Lnet/minecraft/class_364;method_25404(III)Z- official - a- Lfqr;a(III)Z
 
- 
isSelectedpublic boolean isSelected()- Overrides:
- isSelectedin class- ChatSelectionScreen.SelectionListWidget.Entry
- Mappings:
- Namespace - Name - Mixin selector - named - isSelected- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$Entry;isSelected()Z- intermediary - method_44514- Lnet/minecraft/class_7543$class_7544$class_7546;method_44514()Z- official - b- Lfyv$a$b;b()Z
 
- 
canSelectpublic boolean canSelect()- Overrides:
- canSelectin class- ChatSelectionScreen.SelectionListWidget.Entry
- Mappings:
- Namespace - Name - Mixin selector - named - canSelect- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$Entry;canSelect()Z- intermediary - method_44515- Lnet/minecraft/class_7543$class_7544$class_7546;method_44515()Z- official - c- Lfyv$a$b;c()Z
 
- 
isHighlightedOnHoverpublic boolean isHighlightedOnHover()- Overrides:
- isHighlightedOnHoverin class- ChatSelectionScreen.SelectionListWidget.Entry
- Mappings:
- Namespace - Name - Mixin selector - named - isHighlightedOnHover- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$Entry;isHighlightedOnHover()Z- intermediary - method_44694- Lnet/minecraft/class_7543$class_7544$class_7546;method_44694()Z- official - d- Lfyv$a$b;d()Z
 
- 
toggleprivate boolean toggle()- Mappings:
- Namespace - Name - Mixin selector - named - toggle- Lnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;toggle()Z- intermediary - method_44517- Lnet/minecraft/class_7543$class_7544$class_7548;method_44517()Z- official - h- Lfyv$a$d;h()Z
 
 
-