类 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
- 所有已实现的接口:
GuiEventListener
,TabOrderedElement
,NarrationSupplier
public class ChatSelectionScreen.ChatSelectionList.MessageEntry
extends ChatSelectionScreen.ChatSelectionList.Entry
-
字段概要
字段修饰符和类型字段说明private 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
从类继承的字段 net.minecraft.client.gui.components.AbstractSelectionList.Entry
list
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器构造器说明MessageEntry
(int pChatId, Component pText, Component pNarration, GuiMessageTag pTagIcon, boolean pCanReport, boolean pPlayerMessage) -
方法概要
修饰符和类型方法说明boolean
boolean
private int
private int
boolean
boolean
keyPressed
(int pKeyCode, int pScanCode, int pModifiers) boolean
mouseClicked
(double pMouseX, double pMouseY, int pButton) void
render
(GuiGraphics pGuiGraphics, int pIndex, int pTop, int pLeft, int pWidth, int pHeight, int pMouseX, int pMouseY, boolean p_239603_, float pPartialTick) private void
renderSelectedCheckmark
(GuiGraphics pGuiGraphics, int pTop, int pLeft, int pHeight) private void
renderTag
(GuiGraphics pGuiGraphics, int pX, int pY, int pHeight, int pMouseX, int pMouseY) private boolean
从类继承的方法 net.minecraft.client.gui.components.ObjectSelectionList.Entry
updateNarration
从类继承的方法 net.minecraft.client.gui.components.AbstractSelectionList.Entry
isFocused, isMouseOver, renderBack, setFocused
从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
charTyped, getCurrentFocusPath, getRectangle, keyReleased, mouseDragged, mouseMoved, mouseReleased, mouseScrolled, nextFocusPath
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
CHECKMARK_TEXTURE
-
CHECKMARK_WIDTH
private static final int CHECKMARK_WIDTH- 另请参阅:
-
CHECKMARK_HEIGHT
private static final int CHECKMARK_HEIGHT- 另请参阅:
-
INDENT_AMOUNT
private static final int INDENT_AMOUNT- 另请参阅:
-
TAG_MARGIN_LEFT
private static final int TAG_MARGIN_LEFT- 另请参阅:
-
chatId
private final int chatId -
text
-
narration
-
hoverText
-
tagIcon
-
tagHoverText
-
canReport
private final boolean canReport -
playerMessage
private final boolean playerMessage
-
-
构造器详细资料
-
MessageEntry
public MessageEntry(int pChatId, Component pText, Component pNarration, @Nullable GuiMessageTag pTagIcon, boolean pCanReport, boolean pPlayerMessage)
-
-
方法详细资料
-
render
public void render(GuiGraphics pGuiGraphics, int pIndex, int pTop, int pLeft, int pWidth, int pHeight, int pMouseX, int pMouseY, boolean p_239603_, float pPartialTick) -
renderTag
private void renderTag(GuiGraphics pGuiGraphics, int pX, int pY, int pHeight, int pMouseX, int pMouseY) -
renderSelectedCheckmark
-
getMaximumTextWidth
private int getMaximumTextWidth() -
getTextIndent
private int getTextIndent() -
getNarration
-
mouseClicked
public boolean mouseClicked(double pMouseX, double pMouseY, int pButton) -
keyPressed
public boolean keyPressed(int pKeyCode, int pScanCode, int pModifiers) -
isSelected
public boolean isSelected() -
canSelect
public boolean canSelect() -
canReport
public boolean canReport() -
toggleReport
private boolean toggleReport()
-