private IChunkGenerator getNewChunkProvider(World world, String chunkProviderType, String generatorOptions) { if (chunkProviderType.equals("VANILLA_DEFAULT")) { return new ChunkGeneratorOverworld(world, world.getSeed(), world.getWorldInfo().isMapFeaturesEnabled(), generatorOptions); } else if (chunkProviderType.equals("VANILLA_FLAT")) { return new ChunkGeneratorFlat(world, world.getSeed(), world.getWorldInfo().isMapFeaturesEnabled(), generatorOptions); } else if (chunkProviderType.equals("VANILLA_HELL")) { return new ChunkGeneratorHell(world, world.getWorldInfo().isMapFeaturesEnabled(), world.getSeed()); } else if (chunkProviderType.equals("VANILLA_END")) { return new ChunkGeneratorEnd(world, world.getWorldInfo().isMapFeaturesEnabled(), world.getSeed(), new BlockPos(100, 50, 0)); } return null; }
public IChunkGenerator createChunkGenerator() { if (YUNoMakeGoodMap.instance.shouldBeVoid(world)) return new ChunkGeneratorEndVoid(world, world.getSeed(), this.getSpawnPoint()); return new ChunkGeneratorEnd(world, true, world.getSeed(), this.getSpawnPoint()); }