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

项目: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);
    }
}
项目:Backmemed    文件:BiomeSwamp.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    super.decorate(worldIn, rand, pos);

    if (rand.nextInt(64) == 0)
    {
        (new WorldGenFossils()).generate(worldIn, rand, pos);
    }
}
项目:CustomWorldGen    文件:BiomeSwamp.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.FOSSIL))
    if (rand.nextInt(64) == 0)
    {
        (new WorldGenFossils()).generate(worldIn, rand, pos);
    }
}