ISaveHandler .java

net.minecraft.world.storage.ISaveHandler (interface): members: getWorldDirectoryName, getPlayerNBTManager, getMapFileFromName, getWorldDirectory, flush.

net.minecraft.world.storageinterface58 linescommon1.5 KB

API Surface (0)

No public/protected methods detected (fields or constants only).

Code Graph: Dependencies (6)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

ISaveHandler.java58 lines · MCP 1.8.9 · verbatimOriginal ↗
1
package net.minecraft.world.storage;
2
3
import java.io.File;
4
import net.minecraft.nbt.NBTTagCompound;
5
import net.minecraft.world.MinecraftException;
6
import net.minecraft.world.WorldProvider;
7
import net.minecraft.world.chunk.storage.IChunkLoader;
8
9
public interface ISaveHandler
10
{
11
    /**
12
     * Loads and returns the world info
13
     */
14
    WorldInfo loadWorldInfo();
15
16
    /**
17
     * Checks the session lock to prevent save collisions
18
     */
19
    void checkSessionLock() throws MinecraftException;
20
21
    /**
22
     * initializes and returns the chunk loader for the specified world provider
23
     */
24
    IChunkLoader getChunkLoader(WorldProvider provider);
25
26
    /**
27
     * Saves the given World Info with the given NBTTagCompound as the Player.
28
     */
29
    void saveWorldInfoWithPlayer(WorldInfo worldInformation, NBTTagCompound tagCompound);
30
31
    /**
32
     * used to update level.dat from old format to MCRegion format
33
     */
34
    void saveWorldInfo(WorldInfo worldInformation);
35
36
    IPlayerFileData getPlayerNBTManager();
37
38
    /**
39
     * Called to flush all changes to disk, waiting for them to complete.
40
     */
41
    void flush();
42
43
    /**
44
     * Gets the File object corresponding to the base directory of this world.
45
     */
46
    File getWorldDirectory();
47
48
    /**
49
     * Gets the file location of the given map
50
     */
51
    File getMapFileFromName(String mapName);
52
53
    /**
54
     * Returns the name of the directory where world information is saved.
55
     */
56
    String getWorldDirectoryName();
57
}
58

Deobfuscated MCP 1.8.9 source of ISaveHandler from Marcelektro/MavenMCP-1.8.9 (net/minecraft/world/storage/ISaveHandler.java), stored verbatim.