Package net.minecraft.world.storage
Class SaveHandlerMP
- java.lang.Object
-
- net.minecraft.world.storage.SaveHandlerMP
-
- All Implemented Interfaces:
ISaveHandler
public class SaveHandlerMP extends java.lang.Object implements ISaveHandler
+ This portion of EaglercraftX contains deobfuscated Minecraft 1.8 source code. Minecraft 1.8.8 bytecode is (c) 2015 Mojang AB. "Do not distribute!" Mod Coder Pack v9.18 deobfuscation configs are (c) Copyright by the MCP Team EaglercraftX 1.8 patch files are (c) 2022-2023 LAX1DUDE. All Rights Reserved. WITH THE EXCEPTION OF PATCH FILES, MINIFIED JAVASCRIPT, AND ALL FILES NORMALLY FOUND IN AN UNMODIFIED MINECRAFT RESOURCE PACK, YOU ARE NOT ALLOWED TO SHARE, DISTRIBUTE, OR REPURPOSE ANY FILE USED BY OR PRODUCED BY THE SOFTWARE IN THIS REPOSITORY WITHOUT PRIOR PERMISSION FROM THE PROJECT AUTHOR. NOT FOR COMMERCIAL OR MALICIOUS USE (please read the 'LICENSE' file this repo's root directory for more info)
-
-
Constructor Summary
Constructors Constructor Description SaveHandlerMP()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcheckSessionLock()+ Checks the session lock to prevent save collisionsvoidflush()+ Called to flush all changes to disk, waiting for them to complete.IPlayerFileDatagetPlayerNBTManager()java.lang.StringgetWorldDirectoryName()+ Returns the name of the directory where world information is saved.WorldInfoloadWorldInfo()+ Loads and returns the world infovoidsaveWorldInfo(WorldInfo var1)+ used to update level.dat from old format to MCRegion formatvoidsaveWorldInfoWithPlayer(WorldInfo var1, NBTTagCompound var2)+ Saves the given World Info with the given NBTTagCompound as the Player.
-
-
-
Method Detail
-
loadWorldInfo
public WorldInfo loadWorldInfo()
+ Loads and returns the world info- Specified by:
loadWorldInfoin interfaceISaveHandler
-
checkSessionLock
public void checkSessionLock() throws MinecraftException+ Checks the session lock to prevent save collisions- Specified by:
checkSessionLockin interfaceISaveHandler- Throws:
MinecraftException
-
saveWorldInfoWithPlayer
public void saveWorldInfoWithPlayer(WorldInfo var1, NBTTagCompound var2)
+ Saves the given World Info with the given NBTTagCompound as the Player.- Specified by:
saveWorldInfoWithPlayerin interfaceISaveHandler
-
saveWorldInfo
public void saveWorldInfo(WorldInfo var1)
+ used to update level.dat from old format to MCRegion format- Specified by:
saveWorldInfoin interfaceISaveHandler
-
getPlayerNBTManager
public IPlayerFileData getPlayerNBTManager()
- Specified by:
getPlayerNBTManagerin interfaceISaveHandler
-
flush
public void flush()
+ Called to flush all changes to disk, waiting for them to complete.- Specified by:
flushin interfaceISaveHandler
-
getWorldDirectoryName
public java.lang.String getWorldDirectoryName()
+ Returns the name of the directory where world information is saved.- Specified by:
getWorldDirectoryNamein interfaceISaveHandler
-
-