• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

Java WorldGenBigMushroom类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中net.minecraft.world.gen.feature.WorldGenBigMushroom的典型用法代码示例。如果您正苦于以下问题:Java WorldGenBigMushroom类的具体用法?Java WorldGenBigMushroom怎么用?Java WorldGenBigMushroom使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



WorldGenBigMushroom类属于net.minecraft.world.gen.feature包,在下文中一共展示了WorldGenBigMushroom类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: BiomeDecorator

import net.minecraft.world.gen.feature.WorldGenBigMushroom; //导入依赖的package包/类
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;
}
 
开发者ID:MinecraftModdedClients,项目名称:Resilience-Client-Source,代码行数:27,代码来源:BiomeDecorator.java


示例2: BiomeDecorator

import net.minecraft.world.gen.feature.WorldGenBigMushroom; //导入依赖的package包/类
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;
}
 
开发者ID:xtrafrancyz,项目名称:Cauldron,代码行数:27,代码来源:BiomeDecorator.java


示例3: addMushrooms

import net.minecraft.world.gen.feature.WorldGenBigMushroom; //导入依赖的package包/类
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);
                }
            }
        }
    }
}
 
开发者ID:sudofox,项目名称:Backmemed,代码行数:29,代码来源:BiomeForest.java


示例4: addMushrooms

import net.minecraft.world.gen.feature.WorldGenBigMushroom; //导入依赖的package包/类
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);
                }
            }
        }
    }
}
 
开发者ID:F1r3w477,项目名称:CustomWorldGen,代码行数:30,代码来源:BiomeForest.java


示例5: BiomeDecorator

import net.minecraft.world.gen.feature.WorldGenBigMushroom; //导入依赖的package包/类
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_;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:28,代码来源:BiomeDecorator.java


示例6: BiomeDecorator

import net.minecraft.world.gen.feature.WorldGenBigMushroom; //导入依赖的package包/类
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;
}
 
开发者ID:HATB0T,项目名称:RuneCraftery,代码行数:29,代码来源:BiomeDecorator.java


示例7: decorate

import net.minecraft.world.gen.feature.WorldGenBigMushroom; //导入依赖的package包/类
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);
}
 
开发者ID:Notoh,项目名称:DecompiledMinecraft,代码行数:71,代码来源:BiomeGenForest.java



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java SharedCount类代码示例发布时间:2022-05-22
下一篇:
Java SoundCategory类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap