Class FriendsOverlayScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class FriendsOverlayScreen extends Screen
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • TITLE

      private static final Component TITLE
    • BACKGROUND_SPRITE

      private static final Identifier BACKGROUND_SPRITE
    • LOADING_FRIENDS

      private static final Component LOADING_FRIENDS
    • LOADING_REQUESTS

      private static final Component LOADING_REQUESTS
    • ERROR_UPGRADE_NEEDED

      private static final Component ERROR_UPGRADE_NEEDED
    • ERROR_CONNECTION_ISSUE

      private static final Component ERROR_CONNECTION_ISSUE
    • ERROR_TEMPORARY_UNAVAILABLE

      private static final Component ERROR_TEMPORARY_UNAVAILABLE
    • ERROR_USER_MAY_LACK_ACTIVE_PROFILE

      private static final Component ERROR_USER_MAY_LACK_ACTIVE_PROFILE
    • ERROR_UNAUTHORIZED

      private static final Component ERROR_UNAUTHORIZED
    • ERROR_GENERIC

      private static final Component ERROR_GENERIC
    • ERROR_TOAST_GENERIC

      private static final Component 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

      private final @Nullable Screen backgroundScreen
    • friendsTab

      private @Nullable FriendsTab friendsTab
    • pendingTab

      private @Nullable PendingTab pendingTab
    • tabNavigationBar

      private @Nullable TabNavigationBar tabNavigationBar
    • layout

      private @Nullable LinearLayout layout
    • contentLayout

      private @Nullable LinearLayout contentLayout
    • pendingTabButton

      private @Nullable FriendsOverlayTabButton pendingTabButton
    • tabManager

      private final TabManager tabManager
    • friendListUpdateListener

      private final Runnable friendListUpdateListener
    • pendingFriendRemovals

      private final Set<UUID> pendingFriendRemovals
  • Constructor Details

    • FriendsOverlayScreen

      public FriendsOverlayScreen(@Nullable Screen backgroundScreen)
  • Method Details

    • added

      public void added()
      Overrides:
      added in class Screen
    • removed

      public void removed()
      Overrides:
      removed in class Screen
    • onFriendListUpdate

      private void onFriendListUpdate()
    • init

      protected void init()
      Overrides:
      init in class Screen
    • getOverlayWidth

      public int getOverlayWidth()
    • repositionElements

      protected void repositionElements()
      Overrides:
      repositionElements in class Screen
    • tick

      public void tick()
      Overrides:
      tick in class Screen
    • extractBackground

      public void extractBackground(GuiGraphicsExtractor graphics, int mouseX, int mouseY, float a)
      Overrides:
      extractBackground in class Screen
    • selectTab

      private void selectTab(Tab tab)
    • deselectTab

      private void deselectTab(Tab tab)
    • mouseClicked

      public boolean mouseClicked(MouseButtonEvent event, boolean doubleClick)
    • keyPressed

      public boolean keyPressed(KeyEvent event)
      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
    • onClose

      public void onClose()
      Overrides:
      onClose in class Screen
    • refreshLists

      public void refreshLists()
    • applyPresenceUpdate

      public void applyPresenceUpdate()
    • showError

      private void showError(Component message)
    • populateLists

      private void populateLists(PlayerSocialManager playerSocialManager)
    • startFriendAction

      void startFriendAction()
    • onActionFailed

      private @Nullable Void onActionFailed(Throwable ex)