Class SocialInteractionsScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class SocialInteractionsScreen extends Screen
  • Field Details

  • Constructor Details

    • SocialInteractionsScreen

      public SocialInteractionsScreen()
    • SocialInteractionsScreen

      public SocialInteractionsScreen(@Nullable Screen lastScreen)
  • Method Details

    • windowHeight

      private int windowHeight()
    • listEnd

      private int listEnd()
    • marginX

      private int marginX()
    • getNarrationMessage

      public Component getNarrationMessage()
      Overrides:
      getNarrationMessage in class Screen
    • init

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

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

      protected void setInitialFocus()
      Overrides:
      setInitialFocus in class Screen
    • onClose

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

      private void showPage(SocialInteractionsScreen.Page page)
    • renderBackground

      public void renderBackground(GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Overrides:
      renderBackground in class Screen
    • render

      public void render(GuiGraphics guiGraphics, int mouseX, int mouseY, float partialTick)
      Renders the graphical user interface (GUI) element.
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
      Parameters:
      guiGraphics - the GuiGraphics object used for rendering.
      mouseX - the x-coordinate of the mouse cursor.
      mouseY - the y-coordinate of the mouse cursor.
      partialTick - the partial tick time.
    • keyPressed

      public boolean keyPressed(int keyCode, int scanCode, int modifiers)
      Called when a keyboard key is pressed within the GUI element.

      Specified by:
      keyPressed in interface ContainerEventHandler
      Specified by:
      keyPressed in interface GuiEventListener
      Overrides:
      keyPressed in class Screen
      Parameters:
      keyCode - the key code of the pressed key.
      scanCode - the scan code of the pressed key.
      modifiers - the keyboard modifiers.
      Returns:
      true if the event is consumed, false otherwise.
    • isPauseScreen

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

      private void checkSearchStringUpdate(String newText)
    • updateServerLabel

      private void updateServerLabel(Minecraft minecraft)
    • onAddPlayer

      public void onAddPlayer(PlayerInfo playerInfo)
    • onRemovePlayer

      public void onRemovePlayer(UUID id)