Class FriendEntry
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement, LayoutElement, NarratableEntry, NarrationSupplier
-
Nested Class Summary
Nested classes/interfaces inherited from class AbstractScrollArea
AbstractScrollArea.ScrollbarSettingsNested classes/interfaces inherited from class AbstractWidget
AbstractWidget.WithInactiveMessageNested classes/interfaces inherited from interface NarratableEntry
NarratableEntry.NarrationPriority -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Componentprivate static final Componentprivate @Nullable com.mojang.authlib.yggdrasil.response.PresenceStatusDtoprivate static final Componentprivate static final WidgetSpritesprivate final SpriteIconButtonprivate final StringWidgetprivate static final ComponentFields inherited from class AbstractFriendsEntryContainerWidget
BUTTON_SIZE, FACE_SIZE, minecraft, nameWidget, PADDING, playerFaceWidget, playerId, playerName, screen, showingStatus, SPRITE_TEXTURE_SIZEFields inherited from class AbstractScrollArea
SCROLLBAR_WIDTHFields inherited from class AbstractWidget
active, alpha, height, isHovered, message, packedFGColor, UNSET_FG_COLOR, visible, width -
Constructor Summary
ConstructorsConstructorDescriptionFriendEntry(Minecraft minecraft, FriendsOverlayScreen screen, PlayerSocialManager.PlayerData playerData, @Nullable com.mojang.authlib.yggdrasil.response.PresenceStatusDto presence, boolean initiallyLoading, Runnable onAction) -
Method Summary
Modifier and TypeMethodDescription(package private) voidapplyPresence(@Nullable com.mojang.authlib.yggdrasil.response.PresenceStatusDto newPresence) private voidconfirmRemoveFriend(Runnable action) (package private) voiddisable()protected voidextractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) protected Componentprivate static ComponentpresenceStatusComponent(@Nullable com.mojang.authlib.yggdrasil.response.PresenceStatusDto presence) intMethods inherited from class AbstractFriendsEntryContainerWidget
addChild, children, contentHeight, getNarratables, getSpriteIconNarration, playerId, removeChild, updateWidgetNarrationMethods inherited from class AbstractContainerWidget
getFocused, isDragging, isFocused, mouseClicked, mouseDragged, mouseReleased, nextFocusPath, setDragging, setFocused, setFocusedMethods inherited from class AbstractScrollArea
defaultSettings, extractScrollbar, isOverScrollbar, maxScrollAmount, mouseScrolled, onRelease, refreshScrollAmount, scrollable, scrollAmount, scrollbarWidth, scrollBarX, scrollBarY, scrollerHeight, scrollRate, setScrollAmount, updateScrollingMethods inherited from class AbstractWidget
clearFGColor, createNarrationMessage, defaultButtonNarrationText, extractRenderState, extractScrollingStringOverContents, extractTooltipForNextRenderPass, getAlpha, getBottom, getFGColor, getHeight, getMessage, getRectangle, getRight, getTabOrderGroup, getWidth, getX, getY, handleCursor, isActive, isHovered, isHoveredOrFocused, isMouseOver, isValidClickButton, narrationPriority, onClick, onDrag, playButtonClickSound, playDownSound, setAlpha, setFGColor, setHeight, setMessage, setRectangle, setSize, setTabOrderGroup, setTooltip, setTooltipDelay, setWidth, setX, setY, updateNarration, visitWidgets, wrapDefaultNarrationMessageMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, keyPressed, keyReleased, mouseScrolled, preeditUpdatedMethods inherited from interface GuiEventListener
getRectangle, isMouseOver, mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface LayoutElement
setPositionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
REMOVE_SPRITE
-
UNFRIEND
-
CONFIRM_TITLE
-
CONFIRM_UNFRIEND
-
PRESENCE_OFFLINE
-
removeButton
-
statusWidget
-
presence
-
-
Constructor Details
-
FriendEntry
public FriendEntry(Minecraft minecraft, FriendsOverlayScreen screen, PlayerSocialManager.PlayerData playerData, @Nullable com.mojang.authlib.yggdrasil.response.PresenceStatusDto presence, boolean initiallyLoading, Runnable onAction)
-
-
Method Details
-
presenceStatusComponent
-
applyPresence
-
presenceStatusSortOrder
public int presenceStatusSortOrder() -
disable
void disable()- Specified by:
disablein classAbstractFriendsEntryContainerWidget
-
getEntryNarration
- Specified by:
getEntryNarrationin classAbstractFriendsEntryContainerWidget
-
extractWidgetRenderState
protected void extractWidgetRenderState(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) - Overrides:
extractWidgetRenderStatein classAbstractFriendsEntryContainerWidget
-
confirmRemoveFriend
-