类 PlayerEntry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<E>
net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<PlayerEntry>
net.minecraft.client.gui.screens.social.PlayerEntry
- 所有已实现的接口:
ContainerEventHandler
,GuiEventListener
,TabOrderedElement
-
字段概要
字段修饰符和类型字段说明static final int
static final int
private static final Component
private static final Component
private static final int
private static final int
private static final int
private final List<AbstractWidget>
private final boolean
private boolean
private static final Component
private static final Component
private static final Component
private Button
private final UUID
private boolean
private final Minecraft
private static final Component
private static final Component
private static final int
static final int
private final String
static final int
private final boolean
private static final ResourceLocation
private static final Component
private static final Component
private Button
private final boolean
private static final Component
private Button
static final int
private static final int
private final Supplier<ResourceLocation>
private static final int
private float
从类继承的字段 net.minecraft.client.gui.components.AbstractSelectionList.Entry
list
从接口继承的字段 net.minecraft.client.gui.components.events.GuiEventListener
DOUBLE_CLICK_THRESHOLD_MS
-
构造器概要
构造器构造器说明PlayerEntry
(Minecraft pMinecraft, SocialInteractionsScreen pSocialInteractionsScreen, UUID pId, String pPlayerName, Supplier<ResourceLocation> pSkinGetter, boolean pPlayerReportable) -
方法概要
修饰符和类型方法说明List<? extends GuiEventListener>
children()
private Tooltip
(专用程序包) MutableComponent
getEntryNarationMessage
(MutableComponent pComponent) private Component
boolean
boolean
List<? extends NarratableEntry>
private void
onHiddenOrShown
(boolean pVisible, Component pMessage) void
render
(GuiGraphics pGuiGraphics, int pIndex, int pTop, int pLeft, int pWidth, int pHeight, int pMouseX, int pMouseY, boolean p_281660_, float pPartialTick) void
setHasRecentMessages
(boolean pHasRecentMessages) void
setRemoved
(boolean pIsRemoved) private void
updateHideAndShowButton
(boolean p_262638_) 从类继承的方法 net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry
focusPathAtIndex, getFocused, isDragging, mouseClicked, nextFocusPath, setDragging, setFocused
从类继承的方法 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.ContainerEventHandler
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, magicalSpecialHackyFocus, mouseDragged, mouseReleased, mouseScrolled, setFocused
从接口继承的方法 net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, isMouseOver, mouseMoved
从接口继承的方法 net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
字段详细资料
-
REPORT_BUTTON_LOCATION
-
TOOLTIP_DELAY
private static final int TOOLTIP_DELAY- 另请参阅:
-
minecraft
-
children
-
id
-
playerName
-
skinGetter
-
isRemoved
private boolean isRemoved -
hasRecentMessages
private boolean hasRecentMessages -
reportingEnabled
private final boolean reportingEnabled -
playerReportable
private final boolean playerReportable -
hasDraftReport
private final boolean hasDraftReport -
hideButton
-
showButton
-
reportButton
-
tooltipHoverTime
private float tooltipHoverTime -
HIDDEN
-
BLOCKED
-
OFFLINE
-
HIDDEN_OFFLINE
-
BLOCKED_OFFLINE
-
REPORT_DISABLED_TOOLTIP
-
NOT_REPORTABLE_TOOLTIP
-
HIDE_TEXT_TOOLTIP
-
SHOW_TEXT_TOOLTIP
-
REPORT_PLAYER_TOOLTIP
-
SKIN_SIZE
private static final int SKIN_SIZE- 另请参阅:
-
PADDING
private static final int PADDING- 另请参阅:
-
CHAT_TOGGLE_ICON_SIZE
private static final int CHAT_TOGGLE_ICON_SIZE- 另请参阅:
-
CHAT_TOGGLE_ICON_X
private static final int CHAT_TOGGLE_ICON_X- 另请参阅:
-
CHAT_TOGGLE_ICON_Y
private static final int CHAT_TOGGLE_ICON_Y- 另请参阅:
-
SKIN_SHADE
public static final int SKIN_SHADE -
BG_FILL
public static final int BG_FILL -
BG_FILL_REMOVED
public static final int BG_FILL_REMOVED -
PLAYERNAME_COLOR
public static final int PLAYERNAME_COLOR -
PLAYER_STATUS_COLOR
public static final int PLAYER_STATUS_COLOR
-
-
构造器详细资料
-
PlayerEntry
public PlayerEntry(Minecraft pMinecraft, SocialInteractionsScreen pSocialInteractionsScreen, UUID pId, String pPlayerName, Supplier<ResourceLocation> pSkinGetter, boolean pPlayerReportable)
-
-
方法详细资料
-
createReportButtonTooltip
-
render
public void render(GuiGraphics pGuiGraphics, int pIndex, int pTop, int pLeft, int pWidth, int pHeight, int pMouseX, int pMouseY, boolean p_281660_, float pPartialTick) - 指定者:
render
在类中AbstractSelectionList.Entry<PlayerEntry>
-
children
-
narratables
-
getPlayerName
-
getPlayerId
-
setRemoved
public void setRemoved(boolean pIsRemoved) -
isRemoved
public boolean isRemoved() -
setHasRecentMessages
public void setHasRecentMessages(boolean pHasRecentMessages) -
hasRecentMessages
public boolean hasRecentMessages() -
onHiddenOrShown
-
updateHideAndShowButton
private void updateHideAndShowButton(boolean p_262638_) -
getEntryNarationMessage
-
getStatusComponent
-