Java Code Examples for net.minecraft.world.WorldType#WORLD_TYPES
The following examples show how to use
net.minecraft.world.WorldType#WORLD_TYPES .
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DefaultWorldGeneratorImplementation.java From malmo with MIT License | 5 votes |
@Override public boolean createWorld(MissionInit missionInit) { long seed = getWorldSeedFromString(this.dwparams.getSeed()); WorldType.WORLD_TYPES[0].onGUICreateWorldPress(); WorldSettings worldsettings = new WorldSettings(seed, GameType.SURVIVAL, true, false, WorldType.WORLD_TYPES[0]); worldsettings.enableCommands(); // 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.dwparams.isDestroyAfterUse()); }
Example 2
Source File: BiomeGeneratorImplementation.java From malmo with MIT License | 5 votes |
@Override public boolean createWorld(MissionInit missionInit) { long seed = getWorldSeedFromString(); WorldType.WORLD_TYPES[0].onGUICreateWorldPress(); WorldSettings worldsettings = new WorldSettings(seed, GameType.SURVIVAL, true, false, WorldType.WORLD_TYPES[0]); worldsettings.enableCommands(); // 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.bparams.isDestroyAfterUse()); }