Java Code Examples for net.minecraft.world.World.func_181544_b()

The following are Jave code examples for showing how to use func_181544_b() of the net.minecraft.world.World class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
Example 1
Project: DecompiledMinecraft   File: ChunkProviderHell.java   Source Code and License Vote up 5 votes
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);
}
 
Example 2
Project: DecompiledMinecraft   File: ChunkProviderGenerate.java   Source Code and License Vote up 5 votes
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);
    }
}
 
Example 3
Project: DecompiledMinecraft   File: ChunkProviderHell.java   Source Code and License Vote up 5 votes
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);
}
 
Example 4
Project: DecompiledMinecraft   File: ChunkProviderGenerate.java   Source Code and License Vote up 5 votes
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);
    }
}
 
Example 5
Project: BaseClient   File: ChunkProviderHell.java   Source Code and License Vote up 5 votes
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);
}
 
Example 6
Project: BaseClient   File: ChunkProviderGenerate.java   Source Code and License Vote up 5 votes
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);
    }
}
 
Example 7
Project: BaseClient   File: ChunkProviderHell.java   Source Code and License Vote up 5 votes
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);
}
 
Example 8
Project: BaseClient   File: ChunkProviderGenerate.java   Source Code and License Vote up 5 votes
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);
    }
}