diff --git a/mappings/net/minecraft/client/MinecraftClient.mapping b/mappings/net/minecraft/client/MinecraftClient.mapping index d6e582932f..510f8f0c1f 100644 --- a/mappings/net/minecraft/client/MinecraftClient.mapping +++ b/mappings/net/minecraft/client/MinecraftClient.mapping @@ -116,9 +116,9 @@ CLASS net/minecraft/class_310 net/minecraft/client/MinecraftClient FIELD field_1755 currentScreen Lnet/minecraft/class_437; COMMENT The Minecraft client's currently open screen. COMMENT This field should only be used to get the current screen. - COMMENT For changing the screen use {@link MinecraftClient#openScreen(Screen)} + COMMENT For changing the screen, use {@link MinecraftClient#setScreen(Screen)}. COMMENT - COMMENT @see MinecraftClient#openScreen(Screen) + COMMENT @see MinecraftClient#setScreen(Screen) FIELD field_1756 blockRenderManager Lnet/minecraft/class_776; FIELD field_1757 resourcePackDir Ljava/io/File; FIELD field_1758 tutorialManager Lnet/minecraft/class_1156; @@ -200,13 +200,19 @@ CLASS net/minecraft/class_310 net/minecraft/client/MinecraftClient METHOD method_1506 handleGlErrorByDisableVsync (IJ)V ARG 1 error ARG 2 description - METHOD method_1507 openScreen (Lnet/minecraft/class_437;)V - COMMENT Opens a new screen, changing the current screen if needed. + METHOD method_1507 setScreen (Lnet/minecraft/class_437;)V + COMMENT Sets the current screen to a new screen. COMMENT - COMMENT

If the screen being opened is {@code null} and the client is not in game, the title screen will be opened. - COMMENT If the currently opened screen is {@code null} and player is dead then the death screen will be opened. - COMMENT Otherwise the currently open screen will be closed. + COMMENT

If the screen being opened is {@code null}: + COMMENT

+ COMMENT + COMMENT

If there is an open screen when the current screen is changed, {@link Screen#removed()} + COMMENT will be called on it to notify it of the closing. ARG 1 screen + COMMENT the new screen, or {@code null} to just close the previous screen METHOD method_1508 handleInputEvents ()V METHOD method_1511 doItemPick ()V METHOD method_1513 reloadResourcesConcurrently ()Ljava/util/concurrent/CompletableFuture; diff --git a/mappings/net/minecraft/client/gui/screen/Screen.mapping b/mappings/net/minecraft/client/gui/screen/Screen.mapping index 17eb60ec53..4d845ddb53 100644 --- a/mappings/net/minecraft/client/gui/screen/Screen.mapping +++ b/mappings/net/minecraft/client/gui/screen/Screen.mapping @@ -81,7 +81,7 @@ CLASS net/minecraft/class_437 net/minecraft/client/gui/screen/Screen METHOD method_25426 init ()V COMMENT Called when a screen should be initialized. COMMENT - COMMENT

This method is called when this screen is {@linkplain net.minecraft.client.MinecraftClient#openScreen(Screen) opened} or resized. + COMMENT

This method is called when this screen is {@linkplain net.minecraft.client.MinecraftClient#setScreen(Screen) opened} or resized. METHOD method_25427 sendMessage (Ljava/lang/String;)V ARG 1 message METHOD method_25428 confirmLink (Z)V