当前位置: 首页>>代码示例>>Java>>正文


Java MapGenNetherBridge类代码示例

本文整理汇总了Java中net.minecraft.world.gen.structure.MapGenNetherBridge的典型用法代码示例。如果您正苦于以下问题:Java MapGenNetherBridge类的具体用法?Java MapGenNetherBridge怎么用?Java MapGenNetherBridge使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


MapGenNetherBridge类属于net.minecraft.world.gen.structure包,在下文中一共展示了MapGenNetherBridge类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: ChunkProviderHell

import net.minecraft.world.gen.structure.MapGenNetherBridge; //导入依赖的package包/类
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);
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:28,代码来源:ChunkProviderHell.java

示例2: ChunkGeneratorHellVoid

import net.minecraft.world.gen.structure.MapGenNetherBridge; //导入依赖的package包/类
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);
}
 
开发者ID:LexManos,项目名称:YUNoMakeGoodMap,代码行数:8,代码来源:WorldProviderHellVoid.java


注:本文中的net.minecraft.world.gen.structure.MapGenNetherBridge类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。