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
,NarrationSupplier
- Enclosing class:
- ChatSelectionScreen.ChatSelectionList
public class ChatSelectionScreen.ChatSelectionList.MessageEntry
extends ChatSelectionScreen.ChatSelectionList.Entry
-
Field Summary
Modifier and TypeFieldDescriptionprivate final boolean
private final int
private static final int
private static final ResourceLocation
private static final int
private final List<FormattedCharSequence>
private static final int
private final Component
private final boolean
private static final int
private final List<FormattedCharSequence>
private final GuiMessageTag.Icon
private final FormattedText
Fields inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
list
Fields inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
Constructor Summary
ConstructorDescriptionMessageEntry
(int p_240650_, Component p_240525_, Component p_240539_, GuiMessageTag p_240551_, boolean p_240596_, boolean p_240615_) -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
private int
private int
boolean
boolean
keyPressed
(int p_239368_, int p_239369_, int p_239370_) boolean
mouseClicked
(double p_239729_, double p_239730_, int p_239731_) void
render
(PoseStack p_239595_, 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 void
renderSelectedCheckmark
(PoseStack p_240274_, int p_240275_, int p_240276_, int p_240277_) private void
renderTag
(PoseStack p_240603_, int p_240566_, int p_240565_, int p_240581_, int p_240614_, int p_240612_) private boolean
Methods inherited from class net.minecraft.client.gui.components.ObjectSelectionList.Entry
changeFocus, updateNarration
Methods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
isMouseOver
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
charTyped, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled
-
Field Details
-
CHECKMARK_TEXTURE
-
CHECKMARK_WIDTH
private static final int CHECKMARK_WIDTH- See Also:
-
CHECKMARK_HEIGHT
private static final int CHECKMARK_HEIGHT- See Also:
-
INDENT_AMOUNT
private static final int INDENT_AMOUNT- See Also:
-
TAG_MARGIN_LEFT
private static final int TAG_MARGIN_LEFT- See Also:
-
chatId
private final int chatId -
text
-
narration
-
hoverText
-
tagIcon
-
tagHoverText
-
canReport
private final boolean canReport -
playerMessage
private final boolean playerMessage
-
-
Constructor Details
-
MessageEntry
public MessageEntry(int p_240650_, Component p_240525_, @Nullable Component p_240539_, GuiMessageTag p_240551_, boolean p_240596_, boolean p_240615_)
-
-
Method Details
-
render
public void render(PoseStack p_239595_, 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:
render
in classAbstractSelectionList.Entry<ChatSelectionScreen.ChatSelectionList.Entry>
-
renderTag
private void renderTag(PoseStack p_240603_, int p_240566_, int p_240565_, int p_240581_, int p_240614_, int p_240612_) -
renderSelectedCheckmark
private void renderSelectedCheckmark(PoseStack p_240274_, int p_240275_, int p_240276_, int p_240277_) -
getMaximumTextWidth
private int getMaximumTextWidth() -
getTextIndent
private int getTextIndent() -
getNarration
- Overrides:
getNarration
in classChatSelectionScreen.ChatSelectionList.Entry
-
mouseClicked
public boolean mouseClicked(double p_239729_, double p_239730_, int p_239731_) -
keyPressed
public boolean keyPressed(int p_239368_, int p_239369_, int p_239370_) -
isSelected
public boolean isSelected()- Overrides:
isSelected
in classChatSelectionScreen.ChatSelectionList.Entry
-
canSelect
public boolean canSelect()- Overrides:
canSelect
in classChatSelectionScreen.ChatSelectionList.Entry
-
canReport
public boolean canReport()- Overrides:
canReport
in classChatSelectionScreen.ChatSelectionList.Entry
-
toggleReport
private boolean toggleReport()
-