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, LayoutElement
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intprivate static final Componentprivate static final Componentprivate static final intprivate final booleanprivate final List<AbstractWidget> private static final Identifierprivate booleanprivate booleanprivate static final Componentprivate static final Componentprivate static final Componentprivate @Nullable Buttonprivate final UUIDprivate booleanprivate final Minecraftprivate static final WidgetSpritesprivate static final Componentprivate static final intstatic final intprivate final Stringstatic final intprivate static final WidgetSpritesprivate static final Componentprivate static final Componentprivate @Nullable Buttonprivate final booleanprivate static final Componentprivate @Nullable Buttonstatic final intprivate static final intprivate final Supplier<PlayerSkin> private static final Durationprivate floatprivate static final WidgetSpritesFields inherited from class AbstractSelectionList.Entry
CONTENT_PADDING, list -
Constructor Summary
ConstructorsConstructorDescriptionPlayerEntry(Minecraft minecraft, SocialInteractionsScreen socialInteractionsScreen, UUID id, String playerName, Supplier<PlayerSkin> skinGetter, boolean chatReportable) -
Method Summary
Modifier and TypeMethodDescriptionList<? extends GuiEventListener> children()private Tooltipprivate MutableComponentgetEntryNarationMessage(MutableComponent buttonNarrationMessage) private ComponentbooleanbooleanbooleanList<? extends NarratableEntry> private voidonHiddenOrShown(boolean isHidden, Component message) voidrefreshHasDraftReport(ReportingContext reportingContext) voidrenderContent(GuiGraphics graphics, int mouseX, int mouseY, boolean hovered, float a) voidsetHasRecentMessages(boolean hasRecentMessages) voidsetRemoved(boolean isRemoved) private voidupdateHideAndShowButton(boolean isHidden) Methods inherited from class ContainerObjectSelectionList.Entry
focusPathAtIndex, getFocused, isDragging, mouseClicked, nextFocusPath, setDragging, setFocusedMethods inherited from class AbstractSelectionList.Entry
getContentBottom, getContentHeight, getContentRight, getContentWidth, getContentX, getContentXMiddle, getContentY, getContentYMiddle, getHeight, getRectangle, getWidth, getX, getY, isFocused, isMouseOver, setFocused, setHeight, setWidth, setX, setY, visitWidgetsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyPressed, keyReleased, mouseDragged, mouseReleased, mouseScrolled, setFocusedMethods inherited from interface GuiEventListener
getRectangle, isMouseOver, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface 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 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 chatReportable)
-
-
Method Details
-
refreshHasDraftReport
-
createReportButtonTooltip
-
renderContent
- Specified by:
renderContentin classAbstractSelectionList.Entry<PlayerEntry>
-
children
-
narratables
- Specified by:
narratablesin 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 isHidden) -
getEntryNarationMessage
-
getStatusComponent
-