From 27a3bc7045ca547adb0316f52c80355836140876 Mon Sep 17 00:00:00 2001 From: Szum123321 <38787606+Szum123321@users.noreply.github.com> Date: Sat, 26 Dec 2020 00:26:08 +0100 Subject: [PATCH] Added docs for MinecraftServer.save() (#1909) * couple of SplashScreen names (#1766) * couple of SplashScreen names * Update SplashScreen.mapping * Update MinecraftServer.mapping Added save method comment and gave names to its arguments. * Bad indentation * Update mappings/net/minecraft/server/MinecraftServer.mapping Co-authored-by: SuperCoder79 <25208576+SuperCoder7979@users.noreply.github.com> * Update mappings/net/minecraft/server/MinecraftServer.mapping Co-authored-by: SuperCoder79 <25208576+SuperCoder7979@users.noreply.github.com> * Update mappings/net/minecraft/server/MinecraftServer.mapping Co-authored-by: SuperCoder79 <25208576+SuperCoder7979@users.noreply.github.com> * Changed naming convention. Co-authored-by: YanisBft * Changed naming convention. Co-authored-by: YanisBft * Changed naming convention. Co-authored-by: YanisBft Co-authored-by: LoganDark Co-authored-by: SuperCoder79 <25208576+SuperCoder7979@users.noreply.github.com> Co-authored-by: YanisBft --- mappings/net/minecraft/server/MinecraftServer.mapping | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/mappings/net/minecraft/server/MinecraftServer.mapping b/mappings/net/minecraft/server/MinecraftServer.mapping index 0d287e77e4..227eb37a9f 100644 --- a/mappings/net/minecraft/server/MinecraftServer.mapping +++ b/mappings/net/minecraft/server/MinecraftServer.mapping @@ -132,7 +132,16 @@ CLASS net/minecraft/server/MinecraftServer METHOD method_3718 isFlightEnabled ()Z METHOD method_3719 getGameProfileRepo ()Lcom/mojang/authlib/GameProfileRepository; METHOD method_3723 save (ZZZ)Z + COMMENT Saves the server to the data storage device. + COMMENT + COMMENT To store the player data in addition to server data, call {@link PlayerManager#saveAllPlayerData()}. + COMMENT + COMMENT @return whether saving was successful ARG 1 suppressLogs + ARG 2 flush + COMMENT if it should immediately write all data to storage device + ARG 3 force + COMMENT when set to true, all the {@link ServerWorld}s will be saved even if {@link ServerWorld#savingDisabled} is set to true METHOD method_3724 isSinglePlayer ()Z METHOD method_3725 getIconFile ()Ljava/io/File; METHOD method_3727 hasGui ()Z