Class ChatSelectionScreen.SelectionListWidget.MessageEntry
java.lang.Object
net.minecraft.client.gui.widget.EntryListWidget.Entry<E>
net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry<ChatSelectionScreen.SelectionListWidget.Entry>
net.minecraft.client.gui.screen.abusereport.ChatSelectionScreen.SelectionListWidget.Entry
net.minecraft.client.gui.screen.abusereport.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 eoj$a$dintermediary net/minecraft/class_7543$class_7544$class_7548named net/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$MessageEntry
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final intprivate static final Identifierprivate static final intprivate static final intprivate final booleanprivate final @Nullable List<OrderedText>private final intprivate final booleanprivate final Textprivate final StringVisitableFields inherited from interface net.minecraft.client.gui.Element
MAX_DOUBLE_CLICK_INTERVAL -
Constructor Summary
ConstructorsConstructorDescriptionMessageEntry(int index, Text content, Text narration, boolean fromReportedPlayer, boolean isChatMessage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanprivate intprivate intbooleanbooleankeyPressed(int keyCode, int scanCode, int modifiers) Callback for when a key down event has been captured.booleanprivate voidmethod_44695(MatrixStack matrixStack, int int2, int int3, int int4) booleanmouseClicked(double mouseX, double mouseY, int button) Callback for when a mouse button down event has been captured.voidrender(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.private booleantoggle()Methods inherited from class net.minecraft.client.gui.widget.AlwaysSelectedEntryListWidget.Entry
appendNarrations, changeFocusMethods inherited from class net.minecraft.client.gui.widget.EntryListWidget.Entry
isMouseOverMethods 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, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
Field Details
-
field_39750
- Mappings:
Namespace Name Mixin selector official cLeoj$a$d;c:Laaj;intermediary field_39750Lnet/minecraft/class_7543$class_7544$class_7548;field_39750:Lnet/minecraft/class_2960;named field_39750Lnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$MessageEntry;field_39750:Lnet/minecraft/util/Identifier;
-
field_39751
private static final int field_39751- See Also:
- Mappings:
Namespace Name Mixin selector official dLeoj$a$d;d:Iintermediary field_39751Lnet/minecraft/class_7543$class_7544$class_7548;field_39751:Inamed field_39751Lnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$MessageEntry;field_39751:I
-
field_39752
private static final int field_39752- See Also:
- Mappings:
Namespace Name Mixin selector official eLeoj$a$d;e:Iintermediary field_39752Lnet/minecraft/class_7543$class_7544$class_7548;field_39752:Inamed field_39752Lnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$MessageEntry;field_39752:I
-
CHAT_MESSAGE_LEFT_MARGIN
private static final int CHAT_MESSAGE_LEFT_MARGIN- See Also:
- Mappings:
Namespace Name Mixin selector official fLeoj$a$d;f:Iintermediary field_39599Lnet/minecraft/class_7543$class_7544$class_7548;field_39599:Inamed CHAT_MESSAGE_LEFT_MARGINLnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$MessageEntry;CHAT_MESSAGE_LEFT_MARGIN:I
-
index
private final int index- Mappings:
Namespace Name Mixin selector official hLeoj$a$d;h:Iintermediary field_39600Lnet/minecraft/class_7543$class_7544$class_7548;field_39600:Inamed indexLnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$MessageEntry;index:I
-
truncatedContent
- Mappings:
Namespace Name Mixin selector official iLeoj$a$d;i:Lrp;intermediary field_39601Lnet/minecraft/class_7543$class_7544$class_7548;field_39601:Lnet/minecraft/class_5348;named truncatedContentLnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$MessageEntry;truncatedContent:Lnet/minecraft/text/StringVisitable;
-
narration
- Mappings:
Namespace Name Mixin selector official jLeoj$a$d;j:Lrm;intermediary field_39602Lnet/minecraft/class_7543$class_7544$class_7548;field_39602:Lnet/minecraft/class_2561;named narrationLnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$MessageEntry;narration:Lnet/minecraft/text/Text;
-
fullContent
- Mappings:
Namespace Name Mixin selector official kLeoj$a$d;k:Ljava/util/List;intermediary field_39603Lnet/minecraft/class_7543$class_7544$class_7548;field_39603:Ljava/util/List;named fullContentLnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$MessageEntry;fullContent:Ljava/util/List;
-
fromReportedPlayer
private final boolean fromReportedPlayer- Mappings:
Namespace Name Mixin selector official lLeoj$a$d;l:Zintermediary field_39604Lnet/minecraft/class_7543$class_7544$class_7548;field_39604:Znamed fromReportedPlayerLnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$MessageEntry;fromReportedPlayer:Z
-
isChatMessage
private final boolean isChatMessage- Mappings:
Namespace Name Mixin selector official mLeoj$a$d;m:Zintermediary field_39605Lnet/minecraft/class_7543$class_7544$class_7548;field_39605:Znamed isChatMessageLnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$MessageEntry;isChatMessage:Z
-
-
Constructor Details
-
MessageEntry
public MessageEntry(int index, Text content, Text narration, boolean fromReportedPlayer, boolean isChatMessage) - Mappings:
Namespace Name Mixin selector official <init>Leoj$a$d;<init>(Leoj$a;ILrm;Lrm;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;ZZ)Vnamed <init>Lnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$MessageEntry;<init>(Lnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget;ILnet/minecraft/text/Text;Lnet/minecraft/text/Text;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:
renderin classEntryListWidget.Entry<ChatSelectionScreen.SelectionListWidget.Entry>- Parameters:
matrices- the matrix stack used for renderingindex- the index of the entryy- the Y coordinate of the entryx- the X coordinate of the entryentryWidth- the width of the entryentryHeight- the height of the entrymouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousehovered- whether the mouse is hovering over the entry- Mappings:
Namespace Name Mixin selector official aLegr$a;a(Ldzv;IIIIIIIZF)Vintermediary method_25343Lnet/minecraft/class_350$class_351;method_25343(Lnet/minecraft/class_4587;IIIIIIIZF)Vnamed renderLnet/minecraft/client/gui/widget/EntryListWidget$Entry;render(Lnet/minecraft/client/util/math/MatrixStack;IIIIIIIZF)V
-
method_44695
- Mappings:
Namespace Name Mixin selector official aLeoj$a$d;a(Ldzv;III)Vintermediary method_44695Lnet/minecraft/class_7543$class_7544$class_7548;method_44695(Lnet/minecraft/class_4587;III)Vnamed method_44695Lnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$MessageEntry;method_44695(Lnet/minecraft/client/util/math/MatrixStack;III)V
-
getTextWidth
private int getTextWidth()- Mappings:
Namespace Name Mixin selector official eLeoj$a$d;e()Iintermediary method_44666Lnet/minecraft/class_7543$class_7544$class_7548;method_44666()Inamed getTextWidthLnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$MessageEntry;getTextWidth()I
-
getIndent
private int getIndent()- Mappings:
Namespace Name Mixin selector official fLeoj$a$d;f()Iintermediary method_44667Lnet/minecraft/class_7543$class_7544$class_7548;method_44667()Inamed getIndentLnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$MessageEntry;getIndent()I
-
getNarration
- Overrides:
getNarrationin classChatSelectionScreen.SelectionListWidget.Entry- Mappings:
Namespace Name Mixin selector official bLehk$a;b()Lrm;intermediary method_37006Lnet/minecraft/class_4280$class_4281;method_37006()Lnet/minecraft/class_2561;named getNarrationLnet/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 inGLFWclass.- Parameters:
mouseX- the X coordinate of the mousemouseY- the Y coordinate of the mousebutton- the mouse button number- Returns:
trueto indicate that the event handling is successful/valid- See Also:
- Mappings:
Namespace Name Mixin selector official aLehx;a(DDI)Zintermediary method_25402Lnet/minecraft/class_364;method_25402(DDI)Znamed mouseClickedLnet/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 inGLFWclass.- Parameters:
keyCode- the named key code of the event as described in theGLFWclassscanCode- the unique/platform-specific scan code of the keyboard inputmodifiers- 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 official aLehx;a(III)Zintermediary method_25404Lnet/minecraft/class_364;method_25404(III)Znamed keyPressedLnet/minecraft/client/gui/Element;keyPressed(III)Z
-
isSelected
public boolean isSelected()- Overrides:
isSelectedin classChatSelectionScreen.SelectionListWidget.Entry- Mappings:
Namespace Name Mixin selector official aLeoj$a$b;a()Zintermediary method_44514Lnet/minecraft/class_7543$class_7544$class_7546;method_44514()Znamed isSelectedLnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$Entry;isSelected()Z
-
canSelect
public boolean canSelect()- Overrides:
canSelectin classChatSelectionScreen.SelectionListWidget.Entry- Mappings:
Namespace Name Mixin selector official cLeoj$a$b;c()Zintermediary method_44515Lnet/minecraft/class_7543$class_7544$class_7546;method_44515()Znamed canSelectLnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$Entry;canSelect()Z
-
method_44694
public boolean method_44694()- Overrides:
method_44694in classChatSelectionScreen.SelectionListWidget.Entry- Mappings:
Namespace Name Mixin selector official dLeoj$a$b;d()Zintermediary method_44694Lnet/minecraft/class_7543$class_7544$class_7546;method_44694()Znamed method_44694Lnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$Entry;method_44694()Z
-
toggle
private boolean toggle()- Mappings:
Namespace Name Mixin selector official gLeoj$a$d;g()Zintermediary method_44517Lnet/minecraft/class_7543$class_7544$class_7548;method_44517()Znamed toggleLnet/minecraft/client/gui/screen/abusereport/ChatSelectionScreen$SelectionListWidget$MessageEntry;toggle()Z
-