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


Java World.func_181544_b方法代码示例

本文整理汇总了Java中net.minecraft.world.World.func_181544_b方法的典型用法代码示例。如果您正苦于以下问题:Java World.func_181544_b方法的具体用法?Java World.func_181544_b怎么用?Java World.func_181544_b使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在net.minecraft.world.World的用法示例。


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

示例1: ChunkProviderHell

import net.minecraft.world.World; //导入方法依赖的package包/类
public ChunkProviderHell(World worldIn, boolean p_i45637_2_, long p_i45637_3_)
{
    this.worldObj = worldIn;
    this.field_177466_i = p_i45637_2_;
    this.hellRNG = new Random(p_i45637_3_);
    this.netherNoiseGen1 = new NoiseGeneratorOctaves(this.hellRNG, 16);
    this.netherNoiseGen2 = new NoiseGeneratorOctaves(this.hellRNG, 16);
    this.netherNoiseGen3 = new NoiseGeneratorOctaves(this.hellRNG, 8);
    this.slowsandGravelNoiseGen = new NoiseGeneratorOctaves(this.hellRNG, 4);
    this.netherrackExculsivityNoiseGen = new NoiseGeneratorOctaves(this.hellRNG, 4);
    this.netherNoiseGen6 = new NoiseGeneratorOctaves(this.hellRNG, 10);
    this.netherNoiseGen7 = new NoiseGeneratorOctaves(this.hellRNG, 16);
    worldIn.func_181544_b(63);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:15,代码来源:ChunkProviderHell.java

示例2: ChunkProviderGenerate

import net.minecraft.world.World; //导入方法依赖的package包/类
public ChunkProviderGenerate(World worldIn, long p_i45636_2_, boolean p_i45636_4_, String p_i45636_5_)
{
    this.worldObj = worldIn;
    this.mapFeaturesEnabled = p_i45636_4_;
    this.field_177475_o = worldIn.getWorldInfo().getTerrainType();
    this.rand = new Random(p_i45636_2_);
    this.field_147431_j = new NoiseGeneratorOctaves(this.rand, 16);
    this.field_147432_k = new NoiseGeneratorOctaves(this.rand, 16);
    this.field_147429_l = new NoiseGeneratorOctaves(this.rand, 8);
    this.field_147430_m = new NoiseGeneratorPerlin(this.rand, 4);
    this.noiseGen5 = new NoiseGeneratorOctaves(this.rand, 10);
    this.noiseGen6 = new NoiseGeneratorOctaves(this.rand, 16);
    this.mobSpawnerNoise = new NoiseGeneratorOctaves(this.rand, 8);
    this.field_147434_q = new double[825];
    this.parabolicField = new float[25];

    for (int i = -2; i <= 2; ++i)
    {
        for (int j = -2; j <= 2; ++j)
        {
            float f = 10.0F / MathHelper.sqrt_float((float)(i * i + j * j) + 0.2F);
            this.parabolicField[i + 2 + (j + 2) * 5] = f;
        }
    }

    if (p_i45636_5_ != null)
    {
        this.settings = ChunkProviderSettings.Factory.jsonToFactory(p_i45636_5_).func_177864_b();
        this.field_177476_s = this.settings.useLavaOceans ? Blocks.lava : Blocks.water;
        worldIn.func_181544_b(this.settings.seaLevel);
    }
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:33,代码来源:ChunkProviderGenerate.java


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