Class PlayerEntry
java.lang.Object
net.minecraft.client.gui.components.AbstractSelectionList.Entry<PlayerEntry>
net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry<PlayerEntry>
net.minecraft.client.gui.screens.social.PlayerEntry
- All Implemented Interfaces:
ContainerEventHandler
,GuiEventListener
,TabOrderedElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
private static final Component
private static final Component
private static final int
private final boolean
private final List
<AbstractWidget> private static final ResourceLocation
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 WidgetSprites
private static final Component
private static final int
static final int
private final String
static final int
private static final WidgetSprites
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
<PlayerSkin> private static final Duration
private float
private static final WidgetSprites
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
ConstructorsConstructorDescriptionPlayerEntry
(Minecraft minecraft, SocialInteractionsScreen socialInteractionsScreen, UUID id, String playerName, Supplier<PlayerSkin> skinGetter, boolean playerReportable) -
Method Summary
Modifier and TypeMethodDescriptionList
<? extends GuiEventListener> children()
private Tooltip
(package private) MutableComponent
getEntryNarationMessage
(MutableComponent p_component) private Component
boolean
boolean
boolean
List
<? extends NarratableEntry> private void
onHiddenOrShown
(boolean visible, Component message) void
render
(GuiGraphics guiGraphics, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean hovering, float partialTick) void
setHasRecentMessages
(boolean hasRecentMessages) void
setRemoved
(boolean isRemoved) private void
updateHideAndShowButton
(boolean visible) Methods inherited from class net.minecraft.client.gui.components.ContainerObjectSelectionList.Entry
focusPathAtIndex, getFocused, isDragging, mouseClicked, nextFocusPath, setDragging, setFocused
Methods inherited from class net.minecraft.client.gui.components.AbstractSelectionList.Entry
isFocused, isMouseOver, renderBack, setFocused
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
charTyped, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocused
Methods inherited from interface net.minecraft.client.gui.components.events.GuiEventListener
getRectangle, isMouseOver, mouseMoved
Methods inherited from interface net.minecraft.client.gui.components.TabOrderedElement
getTabOrderGroup
-
Field Details
-
DRAFT_REPORT_SPRITE
-
TOOLTIP_DELAY
-
REPORT_BUTTON_SPRITES
-
MUTE_BUTTON_SPRITES
-
UNMUTE_BUTTON_SPRITES
-
minecraft
-
children
-
id
-
playerName
-
skinGetter
-
isRemoved
private boolean isRemoved -
hasRecentMessages
private boolean hasRecentMessages -
reportingEnabled
private final boolean reportingEnabled -
hasDraftReport
private final boolean hasDraftReport -
chatReportable
private final boolean chatReportable -
hideButton
-
showButton
-
reportButton
-
tooltipHoverTime
private float tooltipHoverTime -
HIDDEN
-
BLOCKED
-
OFFLINE
-
HIDDEN_OFFLINE
-
BLOCKED_OFFLINE
-
REPORT_DISABLED_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:
-
SKIN_SHADE
public static final int SKIN_SHADE -
CHAT_TOGGLE_ICON_SIZE
private static final int CHAT_TOGGLE_ICON_SIZE- See Also:
-
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 minecraft, SocialInteractionsScreen socialInteractionsScreen, UUID id, String playerName, Supplier<PlayerSkin> skinGetter, boolean playerReportable)
-
-
Method Details
-
createReportButtonTooltip
-
render
public void render(GuiGraphics guiGraphics, int index, int top, int left, int width, int height, int mouseX, int mouseY, boolean hovering, float partialTick) - Specified by:
render
in classAbstractSelectionList.Entry<PlayerEntry>
-
children
-
narratables
- Specified by:
narratables
in classContainerObjectSelectionList.Entry<PlayerEntry>
-
getPlayerName
-
getPlayerId
-
getSkinGetter
-
setRemoved
public void setRemoved(boolean isRemoved) -
isRemoved
public boolean isRemoved() -
setHasRecentMessages
public void setHasRecentMessages(boolean hasRecentMessages) -
hasRecentMessages
public boolean hasRecentMessages() -
isChatReportable
public boolean isChatReportable() -
onHiddenOrShown
-
updateHideAndShowButton
private void updateHideAndShowButton(boolean visible) -
getEntryNarationMessage
-
getStatusComponent
-