Class PauseScreen

All Implemented Interfaces:
ContainerEventHandler, GuiEventListener, Renderable, TabOrderedElement

public class PauseScreen extends Screen
  • Field Details

    • DRAFT_REPORT_SPRITE

      private static final ResourceLocation DRAFT_REPORT_SPRITE
    • 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
    • FEEDBACK_SUBSCREEN

      private static final Component FEEDBACK_SUBSCREEN
    • OPTIONS

      private static final Component OPTIONS
    • SHARE_TO_LAN

      private static final Component SHARE_TO_LAN
    • PLAYER_REPORTING

      private static final Component PLAYER_REPORTING
    • GAME

      private static final Component GAME
    • PAUSED

      private static final Component PAUSED
    • CUSTOM_OPTIONS_TOOLTIP

      private static final Tooltip CUSTOM_OPTIONS_TOOLTIP
    • showPauseMenu

      private final boolean showPauseMenu
    • disconnectButton

      @Nullable private Button disconnectButton
  • Constructor Details

    • PauseScreen

      public PauseScreen(boolean pShowPauseMenu)
  • Method Details

    • showsPauseMenu

      public boolean showsPauseMenu()
    • init

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

      private void createPauseMenu()
    • getCustomAdditions

      private Optional<? extends Holder<Dialog>> getCustomAdditions()
    • addFeedbackButtons

      static void addFeedbackButtons(Screen pLastScreen, GridLayout.RowHelper pRowHelper)
    • addFeedbackSubscreenAndCustomDialogButtons

      private void addFeedbackSubscreenAndCustomDialogButtons(Minecraft pMinecraft, Holder<Dialog> pCustomDialog, GridLayout.RowHelper pRowHelper)
    • disconnectFromWorld

      public static void disconnectFromWorld(Minecraft pMinecraft, Component pReason)
    • tick

      public void tick()
      Overrides:
      tick in class Screen
    • 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.
    • renderBackground

      public void renderBackground(GuiGraphics pGuiGraphics, int pMouseX, int pMouseY, float pPartialTick)
      Overrides:
      renderBackground in class Screen
    • rendersNowPlayingToast

      public boolean rendersNowPlayingToast()
    • openScreenButton

      private Button openScreenButton(Component pMessage, Supplier<Screen> pScreenSupplier)
    • openLinkButton

      private static Button openLinkButton(Screen pLastScreen, Component pButtonText, URI pUri)