Java 类net.minecraft.world.gen.structure.MapGenNetherBridge 实例源码

项目:CustomWorldGen    文件:ChunkProviderHell.java   
public ChunkProviderHell(World worldIn, boolean p_i45637_2_, long seed)
{
    this.world = worldIn;
    this.generateStructures = p_i45637_2_;
    this.rand = new Random(seed);
    this.lperlinNoise1 = new NoiseGeneratorOctaves(this.rand, 16);
    this.lperlinNoise2 = new NoiseGeneratorOctaves(this.rand, 16);
    this.perlinNoise1 = new NoiseGeneratorOctaves(this.rand, 8);
    this.slowsandGravelNoiseGen = new NoiseGeneratorOctaves(this.rand, 4);
    this.netherrackExculsivityNoiseGen = new NoiseGeneratorOctaves(this.rand, 4);
    this.scaleNoise = new NoiseGeneratorOctaves(this.rand, 10);
    this.depthNoise = new NoiseGeneratorOctaves(this.rand, 16);
    worldIn.setSeaLevel(63);

    net.minecraftforge.event.terraingen.InitNoiseGensEvent.ContextHell ctx =
            new net.minecraftforge.event.terraingen.InitNoiseGensEvent.ContextHell(lperlinNoise1, lperlinNoise2, perlinNoise1, slowsandGravelNoiseGen, netherrackExculsivityNoiseGen, scaleNoise, depthNoise);
    ctx = net.minecraftforge.event.terraingen.TerrainGen.getModdedNoiseGenerators(worldIn, this.rand, ctx);
    this.lperlinNoise1 = ctx.getLPerlin1();
    this.lperlinNoise2 = ctx.getLPerlin2();
    this.perlinNoise1 = ctx.getPerlin();
    this.slowsandGravelNoiseGen = ctx.getPerlin2();
    this.netherrackExculsivityNoiseGen = ctx.getPerlin3();
    this.scaleNoise = ctx.getScale();
    this.depthNoise = ctx.getDepth();
    this.genNetherBridge = (MapGenNetherBridge)net.minecraftforge.event.terraingen.TerrainGen.getModdedMapGen(genNetherBridge, net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.NETHER_BRIDGE);
    this.genNetherCaves = net.minecraftforge.event.terraingen.TerrainGen.getModdedMapGen(genNetherCaves, net.minecraftforge.event.terraingen.InitMapGenEvent.EventType.NETHER_CAVE);
}
项目:YUNoMakeGoodMap    文件:WorldProviderHellVoid.java   
public ChunkGeneratorHellVoid(World world, boolean shouldGenNetherFortress, long seed)
{
    super(world, shouldGenNetherFortress, seed);
    this.world = world;
    this.hellRNG = new Random(seed);
    this.genNetherBridge = (MapGenNetherBridge)TerrainGen.getModdedMapGen(genNetherBridge, InitMapGenEvent.EventType.NETHER_BRIDGE);
}