Class RealmsConfigureWorldScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class RealmsConfigureWorldScreen extends RealmsScreen
  • Field Details

  • Constructor Details

  • Method Details

    • init

      public void init()
      Overrides:
      init in class Screen
    • onTabSelected

      private void onTabSelected(Tab p_419780_)
    • onTabDeselected

      private void onTabDeselected(Tab p_419627_)
    • getContentHeight

      public int getContentHeight()
    • getHeaderHeight

      public int getHeaderHeight()
    • getLastScreen

      public Screen getLastScreen()
    • createErrorScreen

      public Screen createErrorScreen(RealmsServiceException p_428711_)
    • repositionElements

      public void repositionElements()
      Overrides:
      repositionElements in class Screen
    • updateButtonStates

      private void updateButtonStates()
    • render

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

      public boolean keyPressed(int pKeyCode, int pScanCode, int pModifiers)
      Description copied from class: Screen
      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:
      pKeyCode - the key code of the pressed key.
      pScanCode - the scan code of the pressed key.
      pModifiers - the keyboard modifiers.
      Returns:
      true if the event is consumed, false otherwise.
    • renderMenuBackground

      protected void renderMenuBackground(GuiGraphics pPartialTick)
      Overrides:
      renderMenuBackground in class Screen
    • onClose

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

      public void fetchRegionData()
    • fetchServerData

      public void fetchServerData(long pServerId)
    • onRealmsDataFetched

      private void onRealmsDataFetched()
    • saveSlotSettings

      public void saveSlotSettings(RealmsSlot pSlot)
    • saveSettings

      public void saveSettings(String pName, String pDescription, RegionSelectionPreference pRegionSelectionPreference, @Nullable RealmsRegion pPreferredRegiom)
    • openTheWorld

      public void openTheWorld(boolean pJoin)
    • closeTheWorld

      public void closeTheWorld()
    • stateChanged

      public void stateChanged()
    • invitePlayer

      public boolean invitePlayer(long pWorldId, String pPlayerName)
    • getNewScreen

      public RealmsConfigureWorldScreen getNewScreen()
    • getNewScreenWithKnownData

      public RealmsConfigureWorldScreen getNewScreenWithKnownData(RealmsServer pServer)