Class PauseScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class PauseScreen extends Screen
  • Field Details

    • COLUMNS

      private static final int COLUMNS
      See Also:
    • BUTTON_PADDING

      private static final int BUTTON_PADDING
      See Also:
    • BUTTON_WIDTH_FULL

      private static final int BUTTON_WIDTH_FULL
      See Also:
    • BUTTON_WIDTH_HALF

      private static final int BUTTON_WIDTH_HALF
      See Also:
    • RETURN_TO_GAME

      private static final Component RETURN_TO_GAME
    • ADVANCEMENTS

      private static final Component ADVANCEMENTS
    • STATS

      private static final Component STATS
    • SEND_FEEDBACK

      private static final Component SEND_FEEDBACK
    • REPORT_BUGS

      private static final Component REPORT_BUGS
    • OPTIONS

      private static final Component OPTIONS
    • SHARE_TO_LAN

      private static final Component SHARE_TO_LAN
    • PLAYER_REPORTING

      private static final Component PLAYER_REPORTING
    • RETURN_TO_MENU

      private static final Component RETURN_TO_MENU
    • DISCONNECT

      private static final Component DISCONNECT
    • SAVING_LEVEL

      private static final Component SAVING_LEVEL
    • GAME

      private static final Component GAME
    • PAUSED

      private static final Component PAUSED
    • showPauseMenu

      private final boolean showPauseMenu
    • disconnectButton

      @Nullable private Button disconnectButton
  • Constructor Details

    • PauseScreen

      public PauseScreen(boolean p_96308_)
  • Method Details

    • init

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

      private void createPauseMenu()
    • onDisconnect

      private void onDisconnect()
    • tick

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

      public void render(PoseStack p_96310_, int p_96311_, int p_96312_, float p_96313_)
      Specified by:
      render in interface Renderable
      Overrides:
      render in class Screen
    • openScreenButton

      private Button openScreenButton(Component p_262567_, Supplier<Screen> p_262581_)
    • openLinkButton

      private Button openLinkButton(Component p_262593_, String p_262659_)