Class Gui
java.lang.Object
net.minecraft.client.gui.Gui
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final ChatListenerprivate booleanprivate final GuiRenderStatefinal Hudprivate static final org.slf4j.Loggerprivate final Minecraftstatic final ComponentNeo: Contains the extra screen layers.private static final Componentprivate @Nullable TutorialToastprivate final SplashManagerprivate final ToastManager -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate booleanaddInitialScreens(List<Function<Runnable, Screen>> screens) voidbooleanvoidNeo: 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.voidextractRenderState(DeltaTracker deltaTracker, boolean shouldRenderLevel, boolean resourcesLoaded) voidbooleanvoidopenChatAndAddText(ChatComponent.ChatMethod chatMethod, String text) voidopenChatScreen(ChatComponent.ChatMethod chatMethod) overlay()voidNeo: Close the currently active screen (if any) and replace it with the top-most background screen layer.private voidvoidpushScreenLayer(Screen screen) Neo: Push a screen onto the screen layer stack, pushing the currently active screen (if any) onto the stack of background layers.voidregisterReloadListeners(ReloadableResourceManager resourceManager) private voidvoidresizeScreenLayers(int width, int height) screen()voidsetClientLevelTeardownInProgress(boolean clientLevelTeardownInProgress) voidsetOverlay(@Nullable Overlay overlay) voidsetPauseScreen(boolean suppressPauseMenuIfWeReallyArePausing, boolean canGameReallyBePaused) voidvoidtick()voidupdate()
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
SOCIAL_INTERACTIONS_NOT_AVAILABLE
-
SAVING_LEVEL
-
minecraft
-
hud
-
guiRenderState
-
screen
-
overlay
-
clientLevelTeardownInProgress
private boolean clientLevelTeardownInProgress -
splashManager
-
toastManager
-
chatListener
-
screenLayers
-
-
Constructor Details
-
Gui
-
-
Method Details
-
registerReloadListeners
-
tick
public void tick() -
update
public void update() -
extractRenderState
public void extractRenderState(DeltaTracker deltaTracker, boolean shouldRenderLevel, boolean resourcesLoaded) -
screen
-
setScreen
-
overlay
-
setOverlay
-
isPausing
public boolean isPausing() -
splashManager
-
toastManager
-
chatListener
-
addSocialInteractionsToast
public void addSocialInteractionsToast() -
setPauseScreen
public void setPauseScreen(boolean suppressPauseMenuIfWeReallyArePausing, boolean canGameReallyBePaused) -
handleKeybinds
public void handleKeybinds() -
openChatScreen
-
openChatAndAddText
-
buildInitialScreens
-
addInitialScreens
-
canInterruptScreen
public boolean canInterruptScreen() -
setClientLevelTeardownInProgress
public void setClientLevelTeardownInProgress(boolean clientLevelTeardownInProgress) -
renderActiveTextDebug
private void renderActiveTextDebug() -
pushScreenLayer
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
-
popScreenLayerInternal
private void popScreenLayerInternal()
-
socialInteractionsToast