Java 类net.minecraft.world.gen.ChunkGeneratorEnd 实例源码

项目:paintedbiomes    文件:PaintedBiomesEventHandler.java   
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;
}
项目:YUNoMakeGoodMap    文件:WorldProviderEndVoid.java   
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());
}