本文整理汇总了Java中net.minecraft.world.storage.SaveFormatOld类的典型用法代码示例。如果您正苦于以下问题:Java SaveFormatOld类的具体用法?Java SaveFormatOld怎么用?Java SaveFormatOld使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SaveFormatOld类属于net.minecraft.world.storage包,在下文中一共展示了SaveFormatOld类的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: onServerChanged
import net.minecraft.world.storage.SaveFormatOld; //导入依赖的package包/类
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;
}
}
}
示例2: getSavesDirectory
import net.minecraft.world.storage.SaveFormatOld; //导入依赖的package包/类
@Override
public File getSavesDirectory()
{
return ((SaveFormatOld) client.getSaveLoader()).savesDirectory;
}
示例3: getSavesDirectory
import net.minecraft.world.storage.SaveFormatOld; //导入依赖的package包/类
@Override
public File getSavesDirectory()
{
return ((SaveFormatOld) server.getActiveAnvilConverter()).savesDirectory;
}
示例4: getSavesDirectory
import net.minecraft.world.storage.SaveFormatOld; //导入依赖的package包/类
@Override
public File getSavesDirectory()
{
return ((SaveFormatOld) client.func_71359_d()).field_75808_a;
}
示例5: getSavesDirectory
import net.minecraft.world.storage.SaveFormatOld; //导入依赖的package包/类
@Override
public File getSavesDirectory()
{
return ((SaveFormatOld) server.func_71254_M()).field_75808_a;
}