From 6bd581026ea382b0419fbeceade265ba803acbd4 Mon Sep 17 00:00:00 2001 From: yyny <6576327+yyny@users.noreply.github.com> Date: Wed, 23 Dec 2020 17:47:45 +0100 Subject: [PATCH] Add missing mappings in LevelSummary (#1924) * couple of SplashScreen names (#1766) * couple of SplashScreen names * Update SplashScreen.mapping * Add missing mappings in LevelSummary `field_24191` contains a `net.minecraft.text.Text` storing game mode, version, and other level details (such as if cheats are enabled) as a formatted string (This is the third line of text for each level in the list on the world selection screen). The value of this field is created by `method_27430` and publicly accessible via `method_27429`. Also mapped the `SaveVersionInfo` member to `versionInfo`, which seems like a no-brainer. * Reorder `field_24191` to stay alphabetical Co-authored-by: LoganDark --- .../net/minecraft/world/level/storage/LevelSummary.mapping | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/mappings/net/minecraft/world/level/storage/LevelSummary.mapping b/mappings/net/minecraft/world/level/storage/LevelSummary.mapping index be821a31f9..59f180e523 100644 --- a/mappings/net/minecraft/world/level/storage/LevelSummary.mapping +++ b/mappings/net/minecraft/world/level/storage/LevelSummary.mapping @@ -3,7 +3,9 @@ CLASS net/minecraft/class_34 net/minecraft/world/level/storage/LevelSummary FIELD field_209 requiresConversion Z FIELD field_23772 locked Z FIELD field_23773 file Ljava/io/File; + FIELD field_24191 details Lnet/minecraft/class_2561; FIELD field_25022 levelInfo Lnet/minecraft/class_1940; + FIELD field_25023 versionInfo Lnet/minecraft/class_5315; METHOD method_247 getGameMode ()Lnet/minecraft/class_1934; METHOD method_248 getName ()Ljava/lang/String; METHOD method_249 getLastPlayed ()J @@ -17,3 +19,5 @@ CLASS net/minecraft/class_34 net/minecraft/world/level/storage/LevelSummary METHOD method_260 isFutureLevel ()Z METHOD method_27020 getFile ()Ljava/io/File; METHOD method_27021 isLocked ()Z + METHOD method_27429 getDetails ()Lnet/minecraft/class_2561; + METHOD method_27430 createDetails ()Lnet/minecraft/class_2561;