Class FriendsOverlayScreen
java.lang.Object
net.minecraft.client.gui.components.events.AbstractContainerEventHandler
net.minecraft.client.gui.screens.Screen
net.minecraft.client.gui.screens.friends.FriendsOverlayScreen
- All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement
-
Nested Class Summary
Nested classes/interfaces inherited from class Screen
Screen.NarratableSearchResult -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final Identifierprivate static final intprivate @Nullable LinearLayoutprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate static final Componentprivate final Runnableprivate @Nullable FriendsTabprivate @Nullable LinearLayoutprivate static final Componentprivate static final Componentprivate static final org.slf4j.Loggerprivate static final intprivate @Nullable PendingTabprivate @Nullable FriendsOverlayTabButtonprivate static final intstatic final intprivate final TabManagerprivate @Nullable TabNavigationBarprivate static final ComponentFields inherited from class Screen
FADE_IN_TIME, font, FOOTER_SEPARATOR, HEADER_SEPARATOR, height, INWORLD_FOOTER_SEPARATOR, INWORLD_HEADER_SEPARATOR, MENU_BACKGROUND, minecraft, narratorButton, renderables, screenExecutor, title, width -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadded()voidprivate voiddeselectTab(Tab tab) voidextractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a) intprotected voidinit()booleankeyPressed(KeyEvent event) booleanmouseClicked(MouseButtonEvent event, boolean doubleClick) voidonClose()private voidprivate voidpopulateLists(PlayerSocialManager playerSocialManager) voidvoidremoved()protected voidprivate voidprivate void(package private) voidvoidtick()Methods inherited from class Screen
addRenderableOnly, addRenderableWidget, addWidget, afterKeyboardAction, afterMouseAction, afterMouseMove, canInterruptWithAnotherScreen, changeFocus, children, clearFocus, clearWidgets, clickCommandAction, clickUrlAction, defaultHandleClickEvent, defaultHandleGameClickEvent, extractBlurredBackground, extractMenuBackground, extractMenuBackground, extractMenuBackgroundTexture, extractPanorama, extractRenderState, extractRenderStateWithTooltipAndSubtitles, extractTransparentBackground, fadeWidgets, fillCrashDetails, findNarratableWidget, getBackgroundMusic, getFont, getMinecraft, getNarrationMessage, getRectangle, getTitle, getTooltipFromItem, getUsageNarration, handleDelayedNarration, init, insertText, isAllowedInPortal, isInGameUi, isMouseOver, isPauseScreen, isValidCharacterForName, onFilesDrop, rebuildWidgets, removeWidget, resize, setInitialFocus, setInitialFocus, shouldCloseOnEsc, shouldNarrateNavigation, showsActiveEffects, triggerImmediateNarration, updateNarratedWidget, updateNarrationState, updateNarratorStatusMethods inherited from class AbstractContainerEventHandler
getFocused, isDragging, setDragging, setFocusedMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ContainerEventHandler
charTyped, getBorderForArrowNavigation, getChildAt, getCurrentFocusPath, isFocused, keyReleased, mouseDragged, mouseReleased, mouseScrolled, nextFocusPath, preeditUpdated, setFocusedMethods inherited from interface GuiEventListener
mouseMoved, shouldTakeFocusAfterInteractionMethods inherited from interface TabOrderedElement
getTabOrderGroup
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
TITLE
-
BACKGROUND_SPRITE
-
LOADING_FRIENDS
-
LOADING_REQUESTS
-
ERROR_UPGRADE_NEEDED
-
ERROR_CONNECTION_ISSUE
-
ERROR_TEMPORARY_UNAVAILABLE
-
ERROR_USER_MAY_LACK_ACTIVE_PROFILE
-
ERROR_UNAUTHORIZED
-
ERROR_GENERIC
-
ERROR_TOAST_GENERIC
-
BG_BORDER_WIDTH
private static final int BG_BORDER_WIDTH- See Also:
-
OVERLAY_WIDTH
private static final int OVERLAY_WIDTH- See Also:
-
TAB_BUTTON_WIDTH
public static final int TAB_BUTTON_WIDTH- See Also:
-
TAB_BUTTON_HEIGHT
private static final int TAB_BUTTON_HEIGHT- See Also:
-
backgroundScreen
-
friendsTab
-
pendingTab
-
layout
-
contentLayout
-
pendingTabButton
-
tabManager
-
friendListUpdateListener
-
pendingFriendRemovals
-
-
Constructor Details
-
FriendsOverlayScreen
-
-
Method Details
-
added
-
removed
-
onFriendListUpdate
private void onFriendListUpdate() -
init
-
getOverlayWidth
public int getOverlayWidth() -
repositionElements
protected void repositionElements()- Overrides:
repositionElementsin classScreen
-
tick
-
extractBackground
- Overrides:
extractBackgroundin classScreen
-
selectTab
-
deselectTab
-
mouseClicked
-
keyPressed
- Specified by:
keyPressedin interfaceContainerEventHandler- Specified by:
keyPressedin interfaceGuiEventListener- Overrides:
keyPressedin classScreen
-
onClose
-
refreshLists
public void refreshLists() -
applyPresenceUpdate
public void applyPresenceUpdate() -
showError
-
populateLists
-
startFriendAction
void startFriendAction() -
onActionFailed
-