Class 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
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
-
Field Summary
Modifier and TypeFieldDescriptionstatic 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
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
ConstructorDescriptionPlayerEntry
(Minecraft p_243293_, SocialInteractionsScreen p_243214_, UUID p_243288_, String p_243311_, Supplier<ResourceLocation> p_243309_, boolean p_243297_) -
Method Summary
Modifier and TypeMethodDescriptionList<? extends GuiEventListener>
children()
private Tooltip
(package private) MutableComponent
getEntryNarationMessage
(MutableComponent p_100595_) private Component
boolean
boolean
List<? extends NarratableEntry>
private void
onHiddenOrShown
(boolean p_100597_, Component p_100598_) void
render
(PoseStack p_100558_, int p_100559_, int p_100560_, int p_100561_, int p_100562_, int p_100563_, int p_100564_, int p_100565_, boolean p_100566_, float p_100567_) void
setHasRecentMessages
(boolean p_240771_) void
setRemoved
(boolean p_100620_) private void
updateHideAndShowButton
(boolean p_262638_) Methods inherited from class net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry
getFocused, isDragging, setDragging, setFocused
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.ContainerEventHandler
changeFocus, charTyped, getChildAt, keyPressed, keyReleased, magicalSpecialHackyFocus, mouseClicked, mouseDragged, mouseReleased, mouseScrolled, setInitialFocus
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
isMouseOver, mouseMoved
-
Field Details
-
REPORT_BUTTON_LOCATION
-
TOOLTIP_DELAY
private static final int TOOLTIP_DELAY- See Also:
-
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- See Also:
-
PADDING
private static final int PADDING- See Also:
-
CHAT_TOGGLE_ICON_SIZE
private static final int CHAT_TOGGLE_ICON_SIZE- See Also:
-
CHAT_TOGGLE_ICON_X
private static final int CHAT_TOGGLE_ICON_X- See Also:
-
CHAT_TOGGLE_ICON_Y
private static final int CHAT_TOGGLE_ICON_Y- See Also:
-
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
-
-
Constructor Details
-
PlayerEntry
public PlayerEntry(Minecraft p_243293_, SocialInteractionsScreen p_243214_, UUID p_243288_, String p_243311_, Supplier<ResourceLocation> p_243309_, boolean p_243297_)
-
-
Method Details
-
createReportButtonTooltip
-
render
public void render(PoseStack p_100558_, int p_100559_, int p_100560_, int p_100561_, int p_100562_, int p_100563_, int p_100564_, int p_100565_, boolean p_100566_, float p_100567_) - Specified by:
render
in classAbstractSelectionList.Entry<PlayerEntry>
-
children
-
narratables
- Specified by:
narratables
in classContainerObjectSelectionList.Entry<PlayerEntry>
-
getPlayerName
-
getPlayerId
-
setRemoved
public void setRemoved(boolean p_100620_) -
isRemoved
public boolean isRemoved() -
setHasRecentMessages
public void setHasRecentMessages(boolean p_240771_) -
hasRecentMessages
public boolean hasRecentMessages() -
onHiddenOrShown
-
updateHideAndShowButton
private void updateHideAndShowButton(boolean p_262638_) -
getEntryNarationMessage
-
getStatusComponent
-