Class SocialInteractionsScreen

All Implemented Interfaces:
Drawable, Element, ParentElement, TickableElement

@Environment(CLIENT)
public class SocialInteractionsScreen
extends Screen
  • Field Details

    • SOCIAL_INTERACTIONS_TEXTURE

      protected static final Identifier SOCIAL_INTERACTIONS_TEXTURE
    • ALL_TAB_TITLE

      private static final Text ALL_TAB_TITLE
    • HIDDEN_TAB_TITLE

      private static final Text HIDDEN_TAB_TITLE
    • field_26915

      private static final Text field_26915
    • SELECTED_ALL_TAB_TITLE

      private static final Text SELECTED_ALL_TAB_TITLE
    • SELECTED_HIDDEN_TAB_TITLE

      private static final Text SELECTED_HIDDEN_TAB_TITLE
    • field_26916

      private static final Text field_26916
    • SEARCH_TEXT

      private static final Text SEARCH_TEXT
    • field_26917

      private static final Text field_26917
    • EMPTY_HIDDEN_TEXT

      private static final Text EMPTY_HIDDEN_TEXT
    • field_26918

      private static final Text field_26918
    • field_26919

      private static final Text field_26919
    • playerList

    • currentSearch

      private String currentSearch
    • currentTab

      private SocialInteractionsScreen.Tab currentTab
    • allTabButton

      private ButtonWidget allTabButton
    • hiddenTabButton

      private ButtonWidget hiddenTabButton
    • field_26913

      private ButtonWidget field_26913
    • field_26914

      private ButtonWidget field_26914
    • serverLabel

      @Nullable private Text serverLabel
    • playerCount

      private int playerCount
    • field_26873

      private boolean field_26873
    • field_26874

      @Nullable private Runnable field_26874
  • Constructor Details

    • SocialInteractionsScreen

      public SocialInteractionsScreen()
  • Method Details

    • method_31359

      private int method_31359()
    • method_31360

      private int method_31360()
    • method_31361

      private int method_31361()
    • method_31362

      private int method_31362()
    • getNarrationMessage

      public String getNarrationMessage()
      Overrides:
      getNarrationMessage in class Screen
    • tick

      public void tick()
      Specified by:
      tick in interface TickableElement
      Overrides:
      tick in class Screen
    • init

      protected void init()
      Called when a screen should be initialized.

      This method is called when this screen is opened or resized.

      Overrides:
      init in class Screen
    • setCurrentTab

      private void setCurrentTab​(SocialInteractionsScreen.Tab currentTab)
    • removed

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

      public void renderBackground​(MatrixStack matrices)
      Renders the background of this screen.

      If the client is in a world, renders the translucent background gradient. Otherwise renders the background texture.

      Overrides:
      renderBackground in class Screen
    • render

      public void render​(MatrixStack matrices, int mouseX, int mouseY, float delta)
      Specified by:
      render in interface Drawable
      Overrides:
      render in class Screen
    • mouseClicked

      public boolean mouseClicked​(double mouseX, double mouseY, int button)
      Callback for when a mouse button down event has been captured. The button number is identified by the constants in GLFW class.
      Parameters:
      mouseX - the X coordinate of the mouse
      mouseY - the Y coordinate of the mouse
      button - the mouse button number
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Mouse.onMouseButton(long, int, int, int), GLFW.GLFW_MOUSE_BUTTON_1
    • keyPressed

      public boolean keyPressed​(int keyCode, int scanCode, int modifiers)
      Callback for when a key down event has been captured. The key code is identified by the constants in GLFW class.
      Specified by:
      keyPressed in interface Element
      Specified by:
      keyPressed in interface ParentElement
      Overrides:
      keyPressed in class Screen
      Parameters:
      keyCode - the named key code of the event as described in the GLFW class
      scanCode - the unique/platform-specific scan code of the keyboard input
      modifiers - a GLFW bitfield describing the modifier keys that are held down (see {@linkplain https://www.glfw.org/docs/3.3/group__mods.html GLFW Modifier key flags})
      Returns:
      true to indicate that the event handling is successful/valid
      See Also:
      Keyboard.onKey(long, int, int, int, int), GLFW.GLFW_KEY_Q, GLFWKeyCallbackI.invoke(long, int, int, int, int)
    • isPauseScreen

      public boolean isPauseScreen()
      Overrides:
      isPauseScreen in class Screen
    • onSearchChange

      private void onSearchChange​(String currentSearch)
    • method_31350

      private void method_31350​(MinecraftClient minecraftClient)
    • method_31353

      public void method_31353​(PlayerListEntry playerListEntry)
    • method_31355

      public void method_31355​(UUID uUID)
    • method_31354

      public void method_31354​(@Nullable Runnable runnable)