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

项目:Resilience-Client-Source    文件:BiomeDecorator.java   
public BiomeDecorator()
{
    this.sandGen = new WorldGenSand(Blocks.sand, 7);
    this.gravelAsSandGen = new WorldGenSand(Blocks.gravel, 6);
    this.dirtGen = new WorldGenMinable(Blocks.dirt, 32);
    this.gravelGen = new WorldGenMinable(Blocks.gravel, 32);
    this.coalGen = new WorldGenMinable(Blocks.coal_ore, 16);
    this.ironGen = new WorldGenMinable(Blocks.iron_ore, 8);
    this.goldGen = new WorldGenMinable(Blocks.gold_ore, 8);
    this.redstoneGen = new WorldGenMinable(Blocks.redstone_ore, 7);
    this.diamondGen = new WorldGenMinable(Blocks.diamond_ore, 7);
    this.lapisGen = new WorldGenMinable(Blocks.lapis_ore, 6);
    this.field_150514_p = new WorldGenFlowers(Blocks.yellow_flower);
    this.mushroomBrownGen = new WorldGenFlowers(Blocks.brown_mushroom);
    this.mushroomRedGen = new WorldGenFlowers(Blocks.red_mushroom);
    this.bigMushroomGen = new WorldGenBigMushroom();
    this.reedGen = new WorldGenReed();
    this.cactusGen = new WorldGenCactus();
    this.waterlilyGen = new WorldGenWaterlily();
    this.flowersPerChunk = 2;
    this.grassPerChunk = 1;
    this.sandPerChunk = 1;
    this.sandPerChunk2 = 3;
    this.clayPerChunk = 1;
    this.generateLakes = true;
}
项目:Cauldron    文件:BiomeDecorator.java   
public BiomeDecorator()
{
    this.sandGen = new WorldGenSand(Blocks.sand, 7);
    this.gravelAsSandGen = new WorldGenSand(Blocks.gravel, 6);
    this.dirtGen = new WorldGenMinable(Blocks.dirt, 32);
    this.gravelGen = new WorldGenMinable(Blocks.gravel, 32);
    this.coalGen = new WorldGenMinable(Blocks.coal_ore, 16);
    this.ironGen = new WorldGenMinable(Blocks.iron_ore, 8);
    this.goldGen = new WorldGenMinable(Blocks.gold_ore, 8);
    this.redstoneGen = new WorldGenMinable(Blocks.redstone_ore, 7);
    this.diamondGen = new WorldGenMinable(Blocks.diamond_ore, 7);
    this.lapisGen = new WorldGenMinable(Blocks.lapis_ore, 6);
    this.yellowFlowerGen = new WorldGenFlowers(Blocks.yellow_flower);
    this.mushroomBrownGen = new WorldGenFlowers(Blocks.brown_mushroom);
    this.mushroomRedGen = new WorldGenFlowers(Blocks.red_mushroom);
    this.bigMushroomGen = new WorldGenBigMushroom();
    this.reedGen = new WorldGenReed();
    this.cactusGen = new WorldGenCactus();
    this.waterlilyGen = new WorldGenWaterlily();
    this.flowersPerChunk = 2;
    this.grassPerChunk = 1;
    this.sandPerChunk = 1;
    this.sandPerChunk2 = 3;
    this.clayPerChunk = 1;
    this.generateLakes = true;
}
项目:Cauldron    文件:BiomeDecorator.java   
public BiomeDecorator()
{
    this.sandGen = new WorldGenSand(Blocks.sand, 7);
    this.gravelAsSandGen = new WorldGenSand(Blocks.gravel, 6);
    this.dirtGen = new WorldGenMinable(Blocks.dirt, 32);
    this.gravelGen = new WorldGenMinable(Blocks.gravel, 32);
    this.coalGen = new WorldGenMinable(Blocks.coal_ore, 16);
    this.ironGen = new WorldGenMinable(Blocks.iron_ore, 8);
    this.goldGen = new WorldGenMinable(Blocks.gold_ore, 8);
    this.redstoneGen = new WorldGenMinable(Blocks.redstone_ore, 7);
    this.diamondGen = new WorldGenMinable(Blocks.diamond_ore, 7);
    this.lapisGen = new WorldGenMinable(Blocks.lapis_ore, 6);
    this.yellowFlowerGen = new WorldGenFlowers(Blocks.yellow_flower);
    this.mushroomBrownGen = new WorldGenFlowers(Blocks.brown_mushroom);
    this.mushroomRedGen = new WorldGenFlowers(Blocks.red_mushroom);
    this.bigMushroomGen = new WorldGenBigMushroom();
    this.reedGen = new WorldGenReed();
    this.cactusGen = new WorldGenCactus();
    this.waterlilyGen = new WorldGenWaterlily();
    this.flowersPerChunk = 2;
    this.grassPerChunk = 1;
    this.sandPerChunk = 1;
    this.sandPerChunk2 = 3;
    this.clayPerChunk = 1;
    this.generateLakes = true;
}
项目:Backmemed    文件:BiomeForest.java   
protected void addMushrooms(World p_185379_1_, Random p_185379_2_, BlockPos p_185379_3_)
{
    for (int i = 0; i < 4; ++i)
    {
        for (int j = 0; j < 4; ++j)
        {
            int k = i * 4 + 1 + 8 + p_185379_2_.nextInt(3);
            int l = j * 4 + 1 + 8 + p_185379_2_.nextInt(3);
            BlockPos blockpos = p_185379_1_.getHeight(p_185379_3_.add(k, 0, l));

            if (p_185379_2_.nextInt(20) == 0)
            {
                WorldGenBigMushroom worldgenbigmushroom = new WorldGenBigMushroom();
                worldgenbigmushroom.generate(p_185379_1_, p_185379_2_, blockpos);
            }
            else
            {
                WorldGenAbstractTree worldgenabstracttree = this.genBigTreeChance(p_185379_2_);
                worldgenabstracttree.setDecorationDefaults();

                if (worldgenabstracttree.generate(p_185379_1_, p_185379_2_, blockpos))
                {
                    worldgenabstracttree.generateSaplings(p_185379_1_, p_185379_2_, blockpos);
                }
            }
        }
    }
}
项目:CustomWorldGen    文件:BiomeForest.java   
public void addMushrooms(World p_185379_1_, Random p_185379_2_, BlockPos p_185379_3_)
{

    for (int i = 0; i < 4; ++i)
    {
        for (int j = 0; j < 4; ++j)
        {
            int k = i * 4 + 1 + 8 + p_185379_2_.nextInt(3);
            int l = j * 4 + 1 + 8 + p_185379_2_.nextInt(3);
            BlockPos blockpos = p_185379_1_.getHeight(p_185379_3_.add(k, 0, l));

            if (p_185379_2_.nextInt(20) == 0 && net.minecraftforge.event.terraingen.TerrainGen.decorate(p_185379_1_, p_185379_2_, blockpos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.BIG_SHROOM))
            {
                WorldGenBigMushroom worldgenbigmushroom = new WorldGenBigMushroom();
                worldgenbigmushroom.generate(p_185379_1_, p_185379_2_, blockpos);
            }
            else if (net.minecraftforge.event.terraingen.TerrainGen.decorate(p_185379_1_, p_185379_2_, blockpos, net.minecraftforge.event.terraingen.DecorateBiomeEvent.Decorate.EventType.TREE))
            {
                WorldGenAbstractTree worldgenabstracttree = this.genBigTreeChance(p_185379_2_);
                worldgenabstracttree.setDecorationDefaults();

                if (worldgenabstracttree.generate(p_185379_1_, p_185379_2_, blockpos))
                {
                    worldgenabstracttree.generateSaplings(p_185379_1_, p_185379_2_, blockpos);
                }
            }
        }
    }
}
项目:RuneCraftery    文件:BiomeDecorator.java   
public BiomeDecorator(BiomeGenBase p_i1974_1_) {
   this.field_76810_g = new WorldGenSand(7, Block.field_71939_E.field_71990_ca);
   this.field_76822_h = new WorldGenSand(6, Block.field_71940_F.field_71990_ca);
   this.field_76823_i = new WorldGenMinable(Block.field_71979_v.field_71990_ca, 32);
   this.field_76820_j = new WorldGenMinable(Block.field_71940_F.field_71990_ca, 32);
   this.field_76821_k = new WorldGenMinable(Block.field_71950_I.field_71990_ca, 16);
   this.field_76818_l = new WorldGenMinable(Block.field_71949_H.field_71990_ca, 8);
   this.field_76819_m = new WorldGenMinable(Block.field_71941_G.field_71990_ca, 8);
   this.field_76816_n = new WorldGenMinable(Block.field_72047_aN.field_71990_ca, 7);
   this.field_76817_o = new WorldGenMinable(Block.field_72073_aw.field_71990_ca, 7);
   this.field_76831_p = new WorldGenMinable(Block.field_71947_N.field_71990_ca, 6);
   this.field_76830_q = new WorldGenFlowers(Block.field_72097_ad.field_71990_ca);
   this.field_76829_r = new WorldGenFlowers(Block.field_72107_ae.field_71990_ca);
   this.field_76828_s = new WorldGenFlowers(Block.field_72109_af.field_71990_ca);
   this.field_76827_t = new WorldGenFlowers(Block.field_72103_ag.field_71990_ca);
   this.field_76826_u = new WorldGenBigMushroom();
   this.field_76825_v = new WorldGenReed();
   this.field_76824_w = new WorldGenCactus();
   this.field_76834_x = new WorldGenWaterlily();
   this.field_76802_A = 2;
   this.field_76803_B = 1;
   this.field_76801_G = 1;
   this.field_76805_H = 3;
   this.field_76806_I = 1;
   this.field_76808_K = true;
   this.field_76812_e = p_i1974_1_;
}
项目:RuneCraftery    文件:BiomeDecorator.java   
public BiomeDecorator(BiomeGenBase par1BiomeGenBase)
{
    this.sandGen = new WorldGenSand(7, Block.sand.blockID);
    this.gravelAsSandGen = new WorldGenSand(6, Block.gravel.blockID);
    this.dirtGen = new WorldGenMinable(Block.dirt.blockID, 32);
    this.gravelGen = new WorldGenMinable(Block.gravel.blockID, 32);
    this.coalGen = new WorldGenMinable(Block.oreCoal.blockID, 16);
    this.ironGen = new WorldGenMinable(Block.oreIron.blockID, 8);
    this.goldGen = new WorldGenMinable(Block.oreGold.blockID, 8);
    this.redstoneGen = new WorldGenMinable(Block.oreRedstone.blockID, 7);
    this.diamondGen = new WorldGenMinable(Block.oreDiamond.blockID, 7);
    this.lapisGen = new WorldGenMinable(Block.oreLapis.blockID, 6);
    this.plantYellowGen = new WorldGenFlowers(Block.plantYellow.blockID);
    this.plantRedGen = new WorldGenFlowers(Block.plantRed.blockID);
    this.mushroomBrownGen = new WorldGenFlowers(Block.mushroomBrown.blockID);
    this.mushroomRedGen = new WorldGenFlowers(Block.mushroomRed.blockID);
    this.bigMushroomGen = new WorldGenBigMushroom();
    this.reedGen = new WorldGenReed();
    this.cactusGen = new WorldGenCactus();
    this.waterlilyGen = new WorldGenWaterlily();
    this.flowersPerChunk = 2;
    this.grassPerChunk = 1;
    this.sandPerChunk = 1;
    this.sandPerChunk2 = 3;
    this.clayPerChunk = 1;
    this.generateLakes = true;
    this.biome = par1BiomeGenBase;
}
项目:BetterNutritionMod    文件:BiomeDecorator.java   
public BiomeDecorator(BiomeGenBase par1BiomeGenBase)
{
    this.sandGen = new WorldGenSand(7, Block.sand.blockID);
    this.gravelAsSandGen = new WorldGenSand(6, Block.gravel.blockID);
    this.dirtGen = new WorldGenMinable(Block.dirt.blockID, 32);
    this.gravelGen = new WorldGenMinable(Block.gravel.blockID, 32);
    this.coalGen = new WorldGenMinable(Block.oreCoal.blockID, 16);
    this.ironGen = new WorldGenMinable(Block.oreIron.blockID, 8);
    this.goldGen = new WorldGenMinable(Block.oreGold.blockID, 8);
    this.redstoneGen = new WorldGenMinable(Block.oreRedstone.blockID, 7);
    this.diamondGen = new WorldGenMinable(Block.oreDiamond.blockID, 7);
    this.lapisGen = new WorldGenMinable(Block.oreLapis.blockID, 6);
    this.plantYellowGen = new WorldGenFlowers(Block.plantYellow.blockID);
    this.plantRedGen = new WorldGenFlowers(Block.plantRed.blockID);
    this.mushroomBrownGen = new WorldGenFlowers(Block.mushroomBrown.blockID);
    this.mushroomRedGen = new WorldGenFlowers(Block.mushroomRed.blockID);
    this.bigMushroomGen = new WorldGenBigMushroom();
    this.reedGen = new WorldGenReed();
    this.cactusGen = new WorldGenCactus();
    this.waterlilyGen = new WorldGenWaterlily();
    this.flowersPerChunk = 2;
    this.grassPerChunk = 1;
    this.sandPerChunk = 1;
    this.sandPerChunk2 = 3;
    this.clayPerChunk = 1;
    this.generateLakes = true;
    this.biome = par1BiomeGenBase;
}
项目:DecompiledMinecraft    文件:BiomeGenForest.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    if (this.field_150632_aF == 3)
    {
        for (int i = 0; i < 4; ++i)
        {
            for (int j = 0; j < 4; ++j)
            {
                int k = i * 4 + 1 + 8 + rand.nextInt(3);
                int l = j * 4 + 1 + 8 + rand.nextInt(3);
                BlockPos blockpos = worldIn.getHeight(pos.add(k, 0, l));

                if (rand.nextInt(20) == 0)
                {
                    WorldGenBigMushroom worldgenbigmushroom = new WorldGenBigMushroom();
                    worldgenbigmushroom.generate(worldIn, rand, blockpos);
                }
                else
                {
                    WorldGenAbstractTree worldgenabstracttree = this.genBigTreeChance(rand);
                    worldgenabstracttree.func_175904_e();

                    if (worldgenabstracttree.generate(worldIn, rand, blockpos))
                    {
                        worldgenabstracttree.func_180711_a(worldIn, rand, blockpos);
                    }
                }
            }
        }
    }

    int j1 = rand.nextInt(5) - 3;

    if (this.field_150632_aF == 1)
    {
        j1 += 2;
    }

    for (int k1 = 0; k1 < j1; ++k1)
    {
        int l1 = rand.nextInt(3);

        if (l1 == 0)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.SYRINGA);
        }
        else if (l1 == 1)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.ROSE);
        }
        else if (l1 == 2)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.PAEONIA);
        }

        for (int i2 = 0; i2 < 5; ++i2)
        {
            int j2 = rand.nextInt(16) + 8;
            int k2 = rand.nextInt(16) + 8;
            int i1 = rand.nextInt(worldIn.getHeight(pos.add(j2, 0, k2)).getY() + 32);

            if (DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, new BlockPos(pos.getX() + j2, i1, pos.getZ() + k2)))
            {
                break;
            }
        }
    }

    super.decorate(worldIn, rand, pos);
}
项目:DecompiledMinecraft    文件:BiomeGenForest.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    if (this.field_150632_aF == 3)
    {
        for (int i = 0; i < 4; ++i)
        {
            for (int j = 0; j < 4; ++j)
            {
                int k = i * 4 + 1 + 8 + rand.nextInt(3);
                int l = j * 4 + 1 + 8 + rand.nextInt(3);
                BlockPos blockpos = worldIn.getHeight(pos.add(k, 0, l));

                if (rand.nextInt(20) == 0)
                {
                    WorldGenBigMushroom worldgenbigmushroom = new WorldGenBigMushroom();
                    worldgenbigmushroom.generate(worldIn, rand, blockpos);
                }
                else
                {
                    WorldGenAbstractTree worldgenabstracttree = this.genBigTreeChance(rand);
                    worldgenabstracttree.func_175904_e();

                    if (worldgenabstracttree.generate(worldIn, rand, blockpos))
                    {
                        worldgenabstracttree.func_180711_a(worldIn, rand, blockpos);
                    }
                }
            }
        }
    }

    int j1 = rand.nextInt(5) - 3;

    if (this.field_150632_aF == 1)
    {
        j1 += 2;
    }

    for (int k1 = 0; k1 < j1; ++k1)
    {
        int l1 = rand.nextInt(3);

        if (l1 == 0)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.SYRINGA);
        }
        else if (l1 == 1)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.ROSE);
        }
        else if (l1 == 2)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.PAEONIA);
        }

        for (int i2 = 0; i2 < 5; ++i2)
        {
            int j2 = rand.nextInt(16) + 8;
            int k2 = rand.nextInt(16) + 8;
            int i1 = rand.nextInt(worldIn.getHeight(pos.add(j2, 0, k2)).getY() + 32);

            if (DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, new BlockPos(pos.getX() + j2, i1, pos.getZ() + k2)))
            {
                break;
            }
        }
    }

    super.decorate(worldIn, rand, pos);
}
项目:BaseClient    文件:BiomeGenForest.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    if (this.field_150632_aF == 3)
    {
        for (int i = 0; i < 4; ++i)
        {
            for (int j = 0; j < 4; ++j)
            {
                int k = i * 4 + 1 + 8 + rand.nextInt(3);
                int l = j * 4 + 1 + 8 + rand.nextInt(3);
                BlockPos blockpos = worldIn.getHeight(pos.add(k, 0, l));

                if (rand.nextInt(20) == 0)
                {
                    WorldGenBigMushroom worldgenbigmushroom = new WorldGenBigMushroom();
                    worldgenbigmushroom.generate(worldIn, rand, blockpos);
                }
                else
                {
                    WorldGenAbstractTree worldgenabstracttree = this.genBigTreeChance(rand);
                    worldgenabstracttree.func_175904_e();

                    if (worldgenabstracttree.generate(worldIn, rand, blockpos))
                    {
                        worldgenabstracttree.func_180711_a(worldIn, rand, blockpos);
                    }
                }
            }
        }
    }

    int j1 = rand.nextInt(5) - 3;

    if (this.field_150632_aF == 1)
    {
        j1 += 2;
    }

    for (int k1 = 0; k1 < j1; ++k1)
    {
        int l1 = rand.nextInt(3);

        if (l1 == 0)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.SYRINGA);
        }
        else if (l1 == 1)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.ROSE);
        }
        else if (l1 == 2)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.PAEONIA);
        }

        for (int i2 = 0; i2 < 5; ++i2)
        {
            int j2 = rand.nextInt(16) + 8;
            int k2 = rand.nextInt(16) + 8;
            int i1 = rand.nextInt(worldIn.getHeight(pos.add(j2, 0, k2)).getY() + 32);

            if (DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, new BlockPos(pos.getX() + j2, i1, pos.getZ() + k2)))
            {
                break;
            }
        }
    }

    super.decorate(worldIn, rand, pos);
}
项目:BaseClient    文件:BiomeGenForest.java   
public void decorate(World worldIn, Random rand, BlockPos pos)
{
    if (this.field_150632_aF == 3)
    {
        for (int i = 0; i < 4; ++i)
        {
            for (int j = 0; j < 4; ++j)
            {
                int k = i * 4 + 1 + 8 + rand.nextInt(3);
                int l = j * 4 + 1 + 8 + rand.nextInt(3);
                BlockPos blockpos = worldIn.getHeight(pos.add(k, 0, l));

                if (rand.nextInt(20) == 0)
                {
                    WorldGenBigMushroom worldgenbigmushroom = new WorldGenBigMushroom();
                    worldgenbigmushroom.generate(worldIn, rand, blockpos);
                }
                else
                {
                    WorldGenAbstractTree worldgenabstracttree = this.genBigTreeChance(rand);
                    worldgenabstracttree.func_175904_e();

                    if (worldgenabstracttree.generate(worldIn, rand, blockpos))
                    {
                        worldgenabstracttree.func_180711_a(worldIn, rand, blockpos);
                    }
                }
            }
        }
    }

    int j1 = rand.nextInt(5) - 3;

    if (this.field_150632_aF == 1)
    {
        j1 += 2;
    }

    for (int k1 = 0; k1 < j1; ++k1)
    {
        int l1 = rand.nextInt(3);

        if (l1 == 0)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.SYRINGA);
        }
        else if (l1 == 1)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.ROSE);
        }
        else if (l1 == 2)
        {
            DOUBLE_PLANT_GENERATOR.setPlantType(BlockDoublePlant.EnumPlantType.PAEONIA);
        }

        for (int i2 = 0; i2 < 5; ++i2)
        {
            int j2 = rand.nextInt(16) + 8;
            int k2 = rand.nextInt(16) + 8;
            int i1 = rand.nextInt(worldIn.getHeight(pos.add(j2, 0, k2)).getY() + 32);

            if (DOUBLE_PLANT_GENERATOR.generate(worldIn, rand, new BlockPos(pos.getX() + j2, i1, pos.getZ() + k2)))
            {
                break;
            }
        }
    }

    super.decorate(worldIn, rand, pos);
}