Package net.minecraft.world.gen.feature

Examples of net.minecraft.world.gen.feature.WorldGenerator


        || biomeCheck(BiomeSettings.FORESTEDISLAND, biome)
        || biomeCheck(BiomeSettings.BIRCHFOREST, biome)
        || biomeCheck(BiomeSettings.PINEFOREST, biome)
        || biomeCheck(BiomeSettings.MEADOW, biome)
        || biomeCheck(BiomeSettings.WOODLANDS, biome)) {
      final WorldGenerator gen = cropGens.get(Element.PLANT_STRAWBERRY);
      for (int x = 0; x < 4; ++x)
        applyGenerator(gen, world, chunkX, chunkZ, rand);
    }
    }
View Full Code Here


        {
            @Override
            public boolean generate(World world, Random rand, int x, int y, int z)
            {
              // TODO: Check correct generation
                final WorldGenerator worldGen = new WorldGenMegaJungle(false, 10 + rand.nextInt(20), 0, 3, 3);
                return worldGen.generate(world, rand, x, y, z);
            }
           
        }, 6);
        addWeightedTreeGenForBiome(biome.get(), new WorldGenAbstractTree(false)
        {
            @Override
            public boolean generate(World world, Random rand, int x, int y, int z)
            {
                final WorldGenerator worldGen = new WorldGenTrees(false, 4 + rand.nextInt(7), 3, 3, true);
                return worldGen.generate(world, rand, x, y, z);
            }
        }, 12);
    }
View Full Code Here

        addWeightedTreeGenForBiome(biome.get(), new WorldGenAbstractTree(false)
        {
            @Override
            public boolean generate(World world, Random rand, int x, int y, int z)
            {
                final WorldGenerator worldGen = new WorldGenShrub(3, rand.nextInt(3));
                return worldGen.generate(world, rand, x, y, z);
            }
        }, 50);
        addWeightedTreeGenForBiome(biome.get(), JAPANESE_MAPLE_SHRUB_GEN, 50);
    }
View Full Code Here

    int x = (int) player.posX;
    int y = (int) (player.posY);
    int z = (int) player.posZ;

    WorldGenerator gen = new WorldGenBalsa((ITreeGenData) PluginArboriculture.treeInterface.getTree(player.worldObj,
        TreeTemplates.templateAsGenome(PluginArboriculture.treeInterface.getTemplate("treeBalsa"))));

    gen.generate(player.worldObj, player.worldObj.rand, x, y, z);

  }
View Full Code Here

    int x = (int) player.posX - 16;
    int y = (int) (player.posY);
    int z = (int) player.posZ - 16;

    WorldGenerator gen = new WorldGenBalsa((ITreeGenData) PluginArboriculture.treeInterface.getTree(player.worldObj,
        TreeTemplates.templateAsGenome(PluginArboriculture.treeInterface.getTemplate("treeBalsa"))));

    for (int i = 0; i < 16; i++)
      gen.generate(player.worldObj, player.worldObj.rand, x + player.worldObj.rand.nextInt(32), y, z + player.worldObj.rand.nextInt(32));
  }
View Full Code Here

    }

    if (timesTicked < maturity)
      return result;

    WorldGenerator generator = this.getTree().getTreeGenerator(worldObj, xCoord, yCoord, zCoord, bonemealed);
    if (generator.generate(worldObj, worldObj.rand, xCoord, yCoord, zCoord)) {
      PluginArboriculture.treeInterface.getBreedingTracker(worldObj, getOwnerProfile()).registerBirth(getTree());
      return 2;
    }

    return 3;
View Full Code Here

    public void growTree (World world, int x, int y, int z, Random random)
    {
        int md = world.getBlockMetadata(x, y, z) % 8;
        world.setBlock(x, y, z, Blocks.air);
        WorldGenerator obj = null;

        obj = new SlimeTreeGen(true, 5, 4, 1, 0);

        if (!(obj.generate(world, random, x, y, z)))
            world.setBlock(x, y, z, this, md + 8, 3);
    }
View Full Code Here

TOP

Related Classes of net.minecraft.world.gen.feature.WorldGenerator

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.