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 void
checkSessionLock()
+ Checks the session lock to prevent save collisionsvoid
flush()
+ Called to flush all changes to disk, waiting for them to complete.IPlayerFileData
getPlayerNBTManager()
java.lang.String
getWorldDirectoryName()
+ Returns the name of the directory where world information is saved.WorldInfo
loadWorldInfo()
+ Loads and returns the world infovoid
saveWorldInfo(WorldInfo var1)
+ used to update level.dat from old format to MCRegion formatvoid
saveWorldInfoWithPlayer(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:
loadWorldInfo
in interfaceISaveHandler
-
checkSessionLock
public void checkSessionLock() throws MinecraftException
+ Checks the session lock to prevent save collisions- Specified by:
checkSessionLock
in 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:
saveWorldInfoWithPlayer
in interfaceISaveHandler
-
saveWorldInfo
public void saveWorldInfo(WorldInfo var1)
+ used to update level.dat from old format to MCRegion format- Specified by:
saveWorldInfo
in interfaceISaveHandler
-
getPlayerNBTManager
public IPlayerFileData getPlayerNBTManager()
- Specified by:
getPlayerNBTManager
in interfaceISaveHandler
-
flush
public void flush()
+ Called to flush all changes to disk, waiting for them to complete.- Specified by:
flush
in interfaceISaveHandler
-
getWorldDirectoryName
public java.lang.String getWorldDirectoryName()
+ Returns the name of the directory where world information is saved.- Specified by:
getWorldDirectoryName
in interfaceISaveHandler
-
-