Class ChatSelectionScreen.ChatSelectionList.MessageEntry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<E>
net.minecraft.client.gui.components.ObjectSelectionList.Entry<ChatSelectionScreen.ChatSelectionList.Entry>
net.minecraft.client.gui.screens.reporting.ChatSelectionScreen.ChatSelectionList.Entry
net.minecraft.client.gui.screens.reporting.ChatSelectionScreen.ChatSelectionList.MessageEntry
- All Implemented Interfaces:
- GuiEventListener,- TabOrderedElement,- NarrationSupplier
- Enclosing class:
- ChatSelectionScreen.ChatSelectionList
public class ChatSelectionScreen.ChatSelectionList.MessageEntry
extends ChatSelectionScreen.ChatSelectionList.Entry
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final booleanprivate final intprivate static final intprivate static final intprivate final List<FormattedCharSequence>private static final intprivate final Componentprivate final booleanprivate static final intprivate final List<FormattedCharSequence>private final GuiMessageTag.Iconprivate final FormattedTextFields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.EntrylistFields inherited from interface net.minecraft.client.gui.components.events.GuiEventListenerDOUBLE_CLICK_THRESHOLD_MS
- 
Constructor SummaryConstructorsConstructorDescriptionMessageEntry(int p_240650_, Component p_240525_, Component p_240539_, GuiMessageTag p_240551_, boolean p_240596_, boolean p_240615_) 
- 
Method SummaryModifier and TypeMethodDescriptionbooleanbooleanprivate intprivate intbooleanbooleankeyPressed(int p_239368_, int p_239369_, int p_239370_) booleanmouseClicked(double p_239729_, double p_239730_, int p_239731_) voidrender(GuiGraphics p_281361_, int p_239596_, int p_239597_, int p_239598_, int p_239599_, int p_239600_, int p_239601_, int p_239602_, boolean p_239603_, float p_239604_) private voidrenderSelectedCheckmark(GuiGraphics p_281342_, int p_281492_, int p_283046_, int p_283458_) private voidrenderTag(GuiGraphics p_281776_, int p_240566_, int p_240565_, int p_240581_, int p_240614_, int p_240612_) private booleanMethods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.EntryupdateNarrationMethods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.EntryisFocused, isMouseOver, renderBack, setFocusedMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.minecraft.client.gui.components.events.GuiEventListenercharTyped, getCurrentFocusPath, getRectangle, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPathMethods inherited from interface net.minecraft.client.gui.components.TabOrderedElementgetTabOrderGroup
- 
Field Details- 
CHECKMARK_WIDTHprivate static final int CHECKMARK_WIDTH- See Also:
 
- 
CHECKMARK_HEIGHTprivate static final int CHECKMARK_HEIGHT- See Also:
 
- 
INDENT_AMOUNTprivate static final int INDENT_AMOUNT- See Also:
 
- 
TAG_MARGIN_LEFTprivate static final int TAG_MARGIN_LEFT- See Also:
 
- 
chatIdprivate final int chatId
- 
text
- 
narration
- 
hoverText
- 
tagIcon
- 
tagHoverText
- 
canReportprivate final boolean canReport
- 
playerMessageprivate final boolean playerMessage
 
- 
- 
Constructor Details- 
MessageEntrypublic MessageEntry(int p_240650_, Component p_240525_, Component p_240539_, @Nullable GuiMessageTag p_240551_, boolean p_240596_, boolean p_240615_) 
 
- 
- 
Method Details- 
renderpublic void render(GuiGraphics p_281361_, int p_239596_, int p_239597_, int p_239598_, int p_239599_, int p_239600_, int p_239601_, int p_239602_, boolean p_239603_, float p_239604_) - Specified by:
- renderin class- AbstractSelectionList.Entry<ChatSelectionScreen.ChatSelectionList.Entry>
 
- 
renderTagprivate void renderTag(GuiGraphics p_281776_, int p_240566_, int p_240565_, int p_240581_, int p_240614_, int p_240612_) 
- 
renderSelectedCheckmarkprivate void renderSelectedCheckmark(GuiGraphics p_281342_, int p_281492_, int p_283046_, int p_283458_) 
- 
getMaximumTextWidthprivate int getMaximumTextWidth()
- 
getTextIndentprivate int getTextIndent()
- 
getNarration- Overrides:
- getNarrationin class- ChatSelectionScreen.ChatSelectionList.Entry
 
- 
mouseClickedpublic boolean mouseClicked(double p_239729_, double p_239730_, int p_239731_) 
- 
keyPressedpublic boolean keyPressed(int p_239368_, int p_239369_, int p_239370_) 
- 
isSelectedpublic boolean isSelected()- Overrides:
- isSelectedin class- ChatSelectionScreen.ChatSelectionList.Entry
 
- 
canSelectpublic boolean canSelect()- Overrides:
- canSelectin class- ChatSelectionScreen.ChatSelectionList.Entry
 
- 
canReportpublic boolean canReport()- Overrides:
- canReportin class- ChatSelectionScreen.ChatSelectionList.Entry
 
- 
toggleReportprivate boolean toggleReport()
 
-