Java 类net.minecraft.world.storage.SaveFormatOld 实例源码

项目:CustomOreGen    文件:ServerState.java   
public static void onServerChanged(MinecraftServer server, WorldInfo worldInfo)
{
    _worldConfigs.clear();
    WorldConfig.loadedOptionOverrides[1] = WorldConfig.loadedOptionOverrides[2] = null;

    _server = server;
    CustomOreGenBase.log.debug("Server world changed to " + worldInfo.getWorldName());
    File f = null;
    ISaveFormat format = _server.getActiveAnvilConverter();

    if (format != null && format instanceof SaveFormatOld)
    {
        f = ((SaveFormatOld)format).savesDirectory;
    }

    f = new File(f, _server.getFolderName());
    WorldConfig config = null;

    while (config == null)
    {
        try
        {
            config = new WorldConfig(worldInfo, f);
            validateOptions(config.getConfigOptions(), false);
            validateDistributions(config.getOreDistributions(), false);
        }
        catch (Exception var7)
        {
            if (!onConfigError(var7))
            {
                break;
            }

            config = null;
        }
    }
}
项目:CustomWorldGen    文件:FMLClientHandler.java   
@Override
public File getSavesDirectory()
{
    return ((SaveFormatOld) client.getSaveLoader()).savesDirectory;
}
项目:CustomWorldGen    文件:FMLServerHandler.java   
@Override
public File getSavesDirectory()
{
    return ((SaveFormatOld) server.getActiveAnvilConverter()).savesDirectory;
}
项目:TRHS_Club_Mod_2016    文件:FMLClientHandler.java   
@Override
public File getSavesDirectory()
{
    return ((SaveFormatOld) client.func_71359_d()).field_75808_a;
}
项目:TRHS_Club_Mod_2016    文件:FMLServerHandler.java   
@Override
public File getSavesDirectory()
{
    return ((SaveFormatOld) server.func_71254_M()).field_75808_a;
}
项目:CauldronGit    文件:FMLClientHandler.java   
@Override
public File getSavesDirectory()
{
    return ((SaveFormatOld) client.getSaveLoader()).savesDirectory;
}
项目:CauldronGit    文件:FMLServerHandler.java   
@Override
public File getSavesDirectory()
{
    return ((SaveFormatOld) server.getActiveAnvilConverter()).savesDirectory;
}
项目:Cauldron    文件:FMLClientHandler.java   
@Override
public File getSavesDirectory()
{
    return ((SaveFormatOld) client.getSaveLoader()).savesDirectory;
}
项目:Cauldron    文件:FMLServerHandler.java   
@Override
public File getSavesDirectory()
{
    return ((SaveFormatOld) server.getActiveAnvilConverter()).savesDirectory;
}
项目:Cauldron    文件:FMLClientHandler.java   
@Override
public File getSavesDirectory()
{
    return ((SaveFormatOld) client.getSaveLoader()).savesDirectory;
}
项目:Cauldron    文件:FMLServerHandler.java   
@Override
public File getSavesDirectory()
{
    return ((SaveFormatOld) server.getActiveAnvilConverter()).savesDirectory;
}
项目:Cauldron    文件:FMLClientHandler.java   
@Override
public File getSavesDirectory()
{
    return ((SaveFormatOld) client.getSaveLoader()).savesDirectory;
}
项目:Cauldron    文件:FMLServerHandler.java   
@Override
public File getSavesDirectory()
{
    return ((SaveFormatOld) server.getActiveAnvilConverter()).savesDirectory;
}