Class Gui

java.lang.Object
net.minecraft.client.gui.Gui

public class Gui extends Object
  • Field Details

    • LOGGER

      private static final org.slf4j.Logger LOGGER
    • SOCIAL_INTERACTIONS_NOT_AVAILABLE

      private static final Component SOCIAL_INTERACTIONS_NOT_AVAILABLE
    • SAVING_LEVEL

      public static final Component SAVING_LEVEL
    • minecraft

      private final Minecraft minecraft
    • hud

      public final Hud hud
    • guiRenderState

      private final GuiRenderState guiRenderState
    • screen

      private @Nullable Screen screen
    • overlay

      private @Nullable Overlay overlay
    • clientLevelTeardownInProgress

      private boolean clientLevelTeardownInProgress
    • splashManager

      private final SplashManager splashManager
    • toastManager

      private final ToastManager toastManager
    • chatListener

      private final ChatListener chatListener
    • socialInteractionsToast

      private @Nullable TutorialToast socialInteractionsToast
    • screenLayers

      private final Stack<Screen> screenLayers
      Neo: Contains the extra screen layers. The current top layer stays in screen, and the rest serve as a background for it.
  • Constructor Details

  • Method Details

    • registerReloadListeners

      public void registerReloadListeners(ReloadableResourceManager resourceManager)
    • tick

      public void tick()
    • update

      public void update()
    • extractRenderState

      public void extractRenderState(DeltaTracker deltaTracker, boolean shouldRenderLevel, boolean resourcesLoaded)
    • screen

      @Contract(pure=true) public @Nullable Screen screen()
    • setScreen

      public void setScreen(@Nullable Screen screen)
    • overlay

      @Contract(pure=true) public @Nullable Overlay overlay()
    • setOverlay

      public void setOverlay(@Nullable Overlay overlay)
    • isPausing

      public boolean isPausing()
    • splashManager

      public SplashManager splashManager()
    • toastManager

      public ToastManager toastManager()
    • chatListener

      public ChatListener chatListener()
    • addSocialInteractionsToast

      public void addSocialInteractionsToast()
    • setPauseScreen

      public void setPauseScreen(boolean suppressPauseMenuIfWeReallyArePausing, boolean canGameReallyBePaused)
    • handleKeybinds

      public void handleKeybinds()
    • openChatScreen

      public void openChatScreen(ChatComponent.ChatMethod chatMethod)
    • openChatAndAddText

      public void openChatAndAddText(ChatComponent.ChatMethod chatMethod, String text)
    • buildInitialScreens

      public Runnable buildInitialScreens(@Nullable GameLoadCookie cookie)
    • addInitialScreens

      private boolean addInitialScreens(List<Function<Runnable,Screen>> screens)
    • canInterruptScreen

      public boolean canInterruptScreen()
    • setClientLevelTeardownInProgress

      public void setClientLevelTeardownInProgress(boolean clientLevelTeardownInProgress)
    • renderActiveTextDebug

      private void renderActiveTextDebug()
    • pushScreenLayer

      public void pushScreenLayer(Screen screen)
      Neo: Push a screen onto the screen layer stack, pushing the currently active screen (if any) onto the stack of background layers.
      Parameters:
      screen - The new top-most screen
    • popScreenLayer

      public void popScreenLayer()
      Neo: Close the currently active screen (if any) and replace it with the top-most background screen layer.
    • clearScreenLayers

      public void clearScreenLayers()
      Neo: Close the currently active screen (if any) and all background screen layers except the bottom-most one, returning to the bottom-most screen in the layer stack.
    • resizeScreenLayers

      @Internal public void resizeScreenLayers(int width, int height)
    • popScreenLayerInternal

      private void popScreenLayerInternal()