Java 类net.minecraft.world.gen.feature.WorldGenDesertWells 实例源码

项目:Backmemed    文件:BiomeDesert.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    super.decorate(worldIn, rand, pos);

    if (rand.nextInt(1000) == 0)
    {
        int i = rand.nextInt(16) + 8;
        int j = rand.nextInt(16) + 8;
        BlockPos blockpos = worldIn.getHeight(pos.add(i, 0, j)).up();
        (new WorldGenDesertWells()).generate(worldIn, rand, blockpos);
    }

    if (rand.nextInt(64) == 0)
    {
        (new WorldGenFossils()).generate(worldIn, rand, pos);
    }
}
项目:CustomWorldGen    文件:BiomeDesert.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    super.decorate(worldIn, rand, pos);

    if(net.minecraftforge.event.terraingen.TerrainGen.decorate(worldIn, rand, pos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.DESERT_WELL))
    if (rand.nextInt(1000) == 0)
    {
        int i = rand.nextInt(16) + 8;
        int j = rand.nextInt(16) + 8;
        BlockPos blockpos = worldIn.getHeight(pos.add(i, 0, j)).up();
        (new WorldGenDesertWells()).generate(worldIn, rand, blockpos);
    }

    if(net.minecraftforge.event.terraingen.TerrainGen.decorate(worldIn, rand, pos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.FOSSIL))
    if (rand.nextInt(64) == 0)
    {
        (new WorldGenFossils()).generate(worldIn, rand, pos);
    }
}
项目:DecompiledMinecraft    文件:BiomeGenDesert.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    super.decorate(worldIn, rand, pos);

    if (rand.nextInt(1000) == 0)
    {
        int i = rand.nextInt(16) + 8;
        int j = rand.nextInt(16) + 8;
        BlockPos blockpos = worldIn.getHeight(pos.add(i, 0, j)).up();
        (new WorldGenDesertWells()).generate(worldIn, rand, blockpos);
    }
}
项目:DecompiledMinecraft    文件:BiomeGenDesert.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    super.decorate(worldIn, rand, pos);

    if (rand.nextInt(1000) == 0)
    {
        int i = rand.nextInt(16) + 8;
        int j = rand.nextInt(16) + 8;
        BlockPos blockpos = worldIn.getHeight(pos.add(i, 0, j)).up();
        (new WorldGenDesertWells()).generate(worldIn, rand, blockpos);
    }
}
项目:BaseClient    文件:BiomeGenDesert.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    super.decorate(worldIn, rand, pos);

    if (rand.nextInt(1000) == 0)
    {
        int i = rand.nextInt(16) + 8;
        int j = rand.nextInt(16) + 8;
        BlockPos blockpos = worldIn.getHeight(pos.add(i, 0, j)).up();
        (new WorldGenDesertWells()).generate(worldIn, rand, blockpos);
    }
}
项目:BaseClient    文件:BiomeGenDesert.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    super.decorate(worldIn, rand, pos);

    if (rand.nextInt(1000) == 0)
    {
        int i = rand.nextInt(16) + 8;
        int j = rand.nextInt(16) + 8;
        BlockPos blockpos = worldIn.getHeight(pos.add(i, 0, j)).up();
        (new WorldGenDesertWells()).generate(worldIn, rand, blockpos);
    }
}
项目:EvilOcean    文件:BiomeGenDesertIsland.java   
public void decorate(World par1World, Random par2Random, int par3, int par4) {
    super.decorate(par1World, par2Random, par3, par4);

    if (par2Random.nextInt(500) != 0)
        return;
    int k = par3 + par2Random.nextInt(16) + 8;
    int l = par4 + par2Random.nextInt(16) + 8;
    WorldGenDesertWells worldgendesertwells = new WorldGenDesertWells();
    worldgendesertwells.generate(par1World, par2Random, k, par1World.getHeightValue(k, l) + 1, l);
}
项目:Resilience-Client-Source    文件:BiomeGenDesert.java   
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
    super.decorate(par1World, par2Random, par3, par4);

    if (par2Random.nextInt(1000) == 0)
    {
        int var5 = par3 + par2Random.nextInt(16) + 8;
        int var6 = par4 + par2Random.nextInt(16) + 8;
        WorldGenDesertWells var7 = new WorldGenDesertWells();
        var7.generate(par1World, par2Random, var5, par1World.getHeightValue(var5, var6) + 1, var6);
    }
}
项目:TheDarkEra    文件:BiomeDeadLand.java   
@Override
public void decorate(World world, Random rand, int chunkX, int chunkZ) {
    super.decorate(world, rand, chunkX, chunkZ);

    if (rand.nextInt(1000) == 0) {
        int k = chunkX + rand.nextInt(16) + 8;
        int l = chunkZ + rand.nextInt(16) + 8;
        WorldGenDesertWells worldgendesertwells = new WorldGenDesertWells();
        worldgendesertwells.generate(world, rand, k,
                world.getHeightValue(k, l) + 1, l);
    }
}
项目:Cauldron    文件:BiomeGenDesert.java   
public void decorate(World p_76728_1_, Random p_76728_2_, int p_76728_3_, int p_76728_4_)
{
    super.decorate(p_76728_1_, p_76728_2_, p_76728_3_, p_76728_4_);

    if (p_76728_2_.nextInt(1000) == 0)
    {
        int k = p_76728_3_ + p_76728_2_.nextInt(16) + 8;
        int l = p_76728_4_ + p_76728_2_.nextInt(16) + 8;
        WorldGenDesertWells worldgendesertwells = new WorldGenDesertWells();
        worldgendesertwells.generate(p_76728_1_, p_76728_2_, k, p_76728_1_.getHeightValue(k, l) + 1, l);
    }
}
项目:Cauldron    文件:BiomeGenDesert.java   
public void decorate(World p_76728_1_, Random p_76728_2_, int p_76728_3_, int p_76728_4_)
{
    super.decorate(p_76728_1_, p_76728_2_, p_76728_3_, p_76728_4_);

    if (p_76728_2_.nextInt(1000) == 0)
    {
        int k = p_76728_3_ + p_76728_2_.nextInt(16) + 8;
        int l = p_76728_4_ + p_76728_2_.nextInt(16) + 8;
        WorldGenDesertWells worldgendesertwells = new WorldGenDesertWells();
        worldgendesertwells.generate(p_76728_1_, p_76728_2_, k, p_76728_1_.getHeightValue(k, l) + 1, l);
    }
}
项目:RuneCraftery    文件:BiomeGenDesert.java   
public void func_76728_a(World p_76728_1_, Random p_76728_2_, int p_76728_3_, int p_76728_4_) {
   super.func_76728_a(p_76728_1_, p_76728_2_, p_76728_3_, p_76728_4_);
   if(p_76728_2_.nextInt(1000) == 0) {
      int var5 = p_76728_3_ + p_76728_2_.nextInt(16) + 8;
      int var6 = p_76728_4_ + p_76728_2_.nextInt(16) + 8;
      WorldGenDesertWells var7 = new WorldGenDesertWells();
      var7.func_76484_a(p_76728_1_, p_76728_2_, var5, p_76728_1_.func_72976_f(var5, var6) + 1, var6);
   }

}
项目:RuneCraftery    文件:BiomeGenDesert.java   
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
    super.decorate(par1World, par2Random, par3, par4);

    if (par2Random.nextInt(1000) == 0)
    {
        int k = par3 + par2Random.nextInt(16) + 8;
        int l = par4 + par2Random.nextInt(16) + 8;
        WorldGenDesertWells worldgendesertwells = new WorldGenDesertWells();
        worldgendesertwells.generate(par1World, par2Random, k, par1World.getHeightValue(k, l) + 1, l);
    }
}
项目:BetterNutritionMod    文件:BiomeGenDesert.java   
public void decorate(World par1World, Random par2Random, int par3, int par4)
{
    super.decorate(par1World, par2Random, par3, par4);

    if (par2Random.nextInt(1000) == 0)
    {
        int k = par3 + par2Random.nextInt(16) + 8;
        int l = par4 + par2Random.nextInt(16) + 8;
        WorldGenDesertWells worldgendesertwells = new WorldGenDesertWells();
        worldgendesertwells.generate(par1World, par2Random, k, par1World.getHeightValue(k, l) + 1, l);
    }
}