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,Widget
- 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$MessageEntryintermediary net/minecraft/class_7543$class_7544$class_7548official gts$a$d
-
Field Summary
FieldsModifier 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 class net.minecraft.client.gui.widget.EntryListWidget.Entry
PADDING -
Constructor Summary
ConstructorsConstructorDescriptionMessageEntry(int index, Text message, Text narration, @Nullable MessageIndicator indicator, boolean fromReportedPlayer, boolean isChatMessage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprivate voiddrawCheckmark(DrawContext context, int y, int x, int entryHeight) private intprivate intbooleanbooleanbooleankeyPressed(KeyInput input) Callback for when a key down event has been captured.booleanmouseClicked(Click click, boolean doubled) Callback for when a mouse button down event has been captured.voidrender(DrawContext context, int mouseX, int mouseY, boolean hovered, float deltaTicks) 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.Entry
appendNarrationsMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
forEachChild, getContentBottomEnd, getContentHeight, getContentMiddleX, getContentMiddleY, getContentRightEnd, getContentWidth, getContentX, getContentY, getHeight, getNavigationFocus, getWidth, getX, getY, isFocused, isMouseOver, setFocused, setHeight, setWidth, setX, setYMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.Element
charTyped, getBorder, getFocusedPath, getNavigationPath, isClickable, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolledMethods inherited from interface net.minecraft.client.gui.navigation.Navigable
getNavigationOrderMethods inherited from interface net.minecraft.client.gui.widget.Widget
setPosition
-
Field Details
-
CHECKMARK_WIDTH
private static final int CHECKMARK_WIDTH- See Also:
- Mappings:
Namespace Name Mixin selector named CHECKMARK_WIDTHLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;CHECKMARK_WIDTH:Iintermediary field_39751Lnet/minecraft/class_7543$class_7544$class_7548;field_39751:Iofficial bLgts$a$d;b:I
-
CHECKMARK_HEIGHT
private static final int CHECKMARK_HEIGHT- See Also:
- Mappings:
Namespace Name Mixin selector named CHECKMARK_HEIGHTLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;CHECKMARK_HEIGHT:Iintermediary field_39752Lnet/minecraft/class_7543$class_7544$class_7548;field_39752:Iofficial cLgts$a$d;c:I
-
CHAT_MESSAGE_LEFT_MARGIN
private static final int CHAT_MESSAGE_LEFT_MARGIN- See Also:
- Mappings:
Namespace Name Mixin selector named CHAT_MESSAGE_LEFT_MARGINLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;CHAT_MESSAGE_LEFT_MARGIN:Iintermediary field_39599Lnet/minecraft/class_7543$class_7544$class_7548;field_39599:Iofficial dLgts$a$d;d:I
-
INDICATOR_LEFT_MARGIN
private static final int INDICATOR_LEFT_MARGIN- See Also:
- Mappings:
Namespace Name Mixin selector named INDICATOR_LEFT_MARGINLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;INDICATOR_LEFT_MARGIN:Iintermediary field_39775Lnet/minecraft/class_7543$class_7544$class_7548;field_39775:Iofficial eLgts$a$d;e:I
-
index
private final int index- Mappings:
Namespace Name Mixin selector named indexLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;index:Iintermediary field_39600Lnet/minecraft/class_7543$class_7544$class_7548;field_39600:Iofficial fLgts$a$d;f:I
-
truncatedContent
- Mappings:
Namespace Name Mixin selector named truncatedContentLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;truncatedContent:Lnet/minecraft/text/StringVisitable;intermediary field_39601Lnet/minecraft/class_7543$class_7544$class_7548;field_39601:Lnet/minecraft/class_5348;official gLgts$a$d;g:Lys;
-
narration
- Mappings:
Namespace Name Mixin selector named narrationLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;narration:Lnet/minecraft/text/Text;intermediary field_39602Lnet/minecraft/class_7543$class_7544$class_7548;field_39602:Lnet/minecraft/class_2561;official iLgts$a$d;i:Lym;
-
fullContent
- Mappings:
Namespace Name Mixin selector named fullContentLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;fullContent:Ljava/util/List;intermediary field_39603Lnet/minecraft/class_7543$class_7544$class_7548;field_39603:Ljava/util/List;official jLgts$a$d;j:Ljava/util/List;
-
indicatorIcon
- Mappings:
Namespace Name Mixin selector named indicatorIconLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;indicatorIcon:Lnet/minecraft/client/gui/hud/MessageIndicator$Icon;intermediary field_39776Lnet/minecraft/class_7543$class_7544$class_7548;field_39776:Lnet/minecraft/class_7591$class_7592;official kLgts$a$d;k:Lgbw$a;
-
originalContent
- Mappings:
Namespace Name Mixin selector named originalContentLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;originalContent:Ljava/util/List;intermediary field_39777Lnet/minecraft/class_7543$class_7544$class_7548;field_39777:Ljava/util/List;official lLgts$a$d;l:Ljava/util/List;
-
fromReportedPlayer
private final boolean fromReportedPlayer- Mappings:
Namespace Name Mixin selector named fromReportedPlayerLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;fromReportedPlayer:Zintermediary field_39604Lnet/minecraft/class_7543$class_7544$class_7548;field_39604:Zofficial mLgts$a$d;m:Z
-
isChatMessage
private final boolean isChatMessage- Mappings:
Namespace Name Mixin selector named isChatMessageLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;isChatMessage:Zintermediary field_39605Lnet/minecraft/class_7543$class_7544$class_7548;field_39605:Zofficial nLgts$a$d;n: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 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)Vintermediary <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)Vofficial <init>Lgts$a$d;<init>(Lgts$a;ILym;Lym;Lgbw;ZZ)V
-
-
Method Details
-
render
Renders an entry in a list.- Specified by:
renderin classEntryListWidget.Entry<ChatSelectionScreen.SelectionListWidget.Entry>- Mappings:
Namespace Name Mixin selector named renderLnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/gui/DrawContext;IIZF)Vintermediary method_25343Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_332;IIZF)Vofficial aLgfn$a;a(Lgfh;IIZF)V
-
renderIndicator
private void renderIndicator(DrawContext context, int x, int y, int entryHeight, int mouseX, int mouseY) - Mappings:
Namespace Name Mixin selector named renderIndicatorLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;renderIndicator(Lnet/minecraft/client/gui/DrawContext;IIIII)Vintermediary method_44729Lnet/minecraft/class_7543$class_7544$class_7548;method_44729(Lnet/minecraft/class_332;IIIII)Vofficial aLgts$a$d;a(Lgfh;IIIII)V
-
drawCheckmark
- Mappings:
Namespace Name Mixin selector named drawCheckmarkLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;drawCheckmark(Lnet/minecraft/client/gui/DrawContext;III)Vintermediary method_44695Lnet/minecraft/class_7543$class_7544$class_7548;method_44695(Lnet/minecraft/class_332;III)Vofficial aLgts$a$d;a(Lgfh;III)V
-
getTextWidth
private int getTextWidth()- Mappings:
Namespace Name Mixin selector named getTextWidthLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;getTextWidth()Iintermediary method_44666Lnet/minecraft/class_7543$class_7544$class_7548;method_44666()Iofficial fLgts$a$d;f()I
-
getIndent
private int getIndent()- Mappings:
Namespace Name Mixin selector named getIndentLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;getIndent()Iintermediary method_44667Lnet/minecraft/class_7543$class_7544$class_7548;method_44667()Iofficial tLgts$a$d;t()I
-
getNarration
- Overrides:
getNarrationin classChatSelectionScreen.SelectionListWidget.Entry- Mappings:
Namespace Name Mixin selector named getNarrationLnet/minecraft/client/gui/widget/AlwaysSelectedEntryListWidget$Entry;getNarration()Lnet/minecraft/text/Text;intermediary method_37006Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;official aLggq$a;a()Lym;
-
mouseClicked
Callback for when a mouse button down event has been captured. The button number is identified by the constants inGLFWclass.- Specified by:
mouseClickedin interfaceElement- Overrides:
mouseClickedin classChatSelectionScreen.SelectionListWidget.Entry- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named mouseClickedLnet/minecraft/client/gui/Element;mouseClicked(Lnet/minecraft/client/gui/Click;Z)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(Lnet/minecraft/class_11909;Z)Zofficial aLgjb;a(Lgvn;Z)Z
-
keyPressed
Callback for when a key down event has been captured. The key code is identified by the constants inGLFWclass.- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector named keyPressedLnet/minecraft/client/gui/Element;keyPressed(Lnet/minecraft/client/input/KeyInput;)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(Lnet/minecraft/class_11908;)Zofficial aLgjb;a(Lgvm;)Z
-
isSelected
public boolean isSelected()- Overrides:
isSelectedin classChatSelectionScreen.SelectionListWidget.Entry- Mappings:
Namespace Name Mixin selector named isSelectedLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$Entry;isSelected()Zintermediary method_44514Lnet/minecraft/class_7543$class_7544$class_7546;method_44514()Zofficial bLgts$a$b;b()Z
-
canSelect
public boolean canSelect()- Overrides:
canSelectin classChatSelectionScreen.SelectionListWidget.Entry- Mappings:
Namespace Name Mixin selector named canSelectLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$Entry;canSelect()Zintermediary method_44515Lnet/minecraft/class_7543$class_7544$class_7546;method_44515()Zofficial cLgts$a$b;c()Z
-
isHighlightedOnHover
public boolean isHighlightedOnHover()- Overrides:
isHighlightedOnHoverin classChatSelectionScreen.SelectionListWidget.Entry- Mappings:
Namespace Name Mixin selector named isHighlightedOnHoverLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$Entry;isHighlightedOnHover()Zintermediary method_44694Lnet/minecraft/class_7543$class_7544$class_7546;method_44694()Zofficial eLgts$a$b;e()Z
-
toggle
private boolean toggle()- Mappings:
Namespace Name Mixin selector named toggleLnet/minecraft/client/gui/screen/report/ChatSelectionScreen$SelectionListWidget$MessageEntry;toggle()Zintermediary method_44517Lnet/minecraft/class_7543$class_7544$class_7548;method_44517()Zofficial uLgts$a$d;u()Z
-