@Override
public boolean createWorld(MissionInit missionInit)
{
long seed = DefaultWorldGeneratorImplementation.getWorldSeedFromString(this.fwparams.getSeed());
WorldSettings worldsettings = new WorldSettings(seed, GameType.SURVIVAL, false, false, WorldType.FLAT);
// This call to setWorldName allows us to specify the layers of our world, and also the features that will be created.
// This website provides a handy way to generate these strings: http://chunkbase.com/apps/superflat-generator
worldsettings.setWorldName(this.fwparams.getGeneratorString());
worldsettings.enableCommands(); // Enables cheat commands.
// Create a filename for this map - we use the time stamp to make sure it is different from other worlds, otherwise no new world
// will be created, it will simply load the old one.
return MapFileHelper.createAndLaunchWorld(worldsettings, this.fwparams.isDestroyAfterUse());
}
FlatWorldGeneratorImplementation.java 文件源码
java
阅读 20
收藏 0
点赞 0
评论 0
项目:Proyecto-DASI
作者:
评论列表
文章目录