net.minecraft.world.gen.feature.WorldGenShrub Java Examples

The following examples show how to use net.minecraft.world.gen.feature.WorldGenShrub. You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: BiomeWoodlands.java    From CommunityMod with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	int num = rand.nextInt(3);
	if (num == 0) {
		return new WorldGenShrub(OAK_LOG, OAK_LEAVES);
	}
	return TREE_FEATURE;
}
 
Example #2
Source File: BiomeBadlands.java    From CommunityMod with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	int num = rand.nextInt(2);
	if (num == 0) {
		return new WorldGenShrub(OAK_LOG, OAK_LEAVES);
	}

	return TREE_FEATURE;
}
 
Example #3
Source File: BiomeWoodlands.java    From Traverse-Legacy-1-12-2 with MIT License 5 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	int num = rand.nextInt(3);
	if (num == 0) {
		return new WorldGenShrub(OAK_LOG, OAK_LEAVES);
	}
	return TREE_FEATURE;
}
 
Example #4
Source File: BiomeBadlands.java    From Traverse-Legacy-1-12-2 with MIT License 5 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	int num = rand.nextInt(2);
	if (num == 0) {
		return new WorldGenShrub(OAK_LOG, OAK_LEAVES);
	}

	return TREE_FEATURE;
}
 
Example #5
Source File: BiomeGenWyvernLair.java    From mocreaturesdev with GNU General Public License v3.0 5 votes vote down vote up
/**
    * Gets a WorldGen appropriate for this biome.
    */
@Override
   public WorldGenerator getRandomWorldGenForTrees(Random par1Random)
   {
       //return (WorldGenerator)(par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(3, 0) : (par1Random.nextInt(3) == 0 ? new WorldGenHugeTrees(false, 10 + par1Random.nextInt(20), 3, 3) : new WorldGenTrees(false, 4 + par1Random.nextInt(7), 3, 3, true))));
       
      // return (WorldGenerator)(par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : (par1Random.nextInt(2) == 0 ? new WorldGenShrub(3, 0) : (par1Random.nextInt(3) == 0 ? new WorldGenWyvernTrees(false) : new WorldGenTrees(false, 4 + par1Random.nextInt(7), 3, 3, true))));
       //return (WorldGenerator) (par1Random.nextInt(10) == 0 ? new MoCWorldGenBigTree(false, MoCreatures.mocLog.blockID, 0, MoCreatures.mocLeaf.blockID, 0, 2, 30, 10) : this.worldGeneratorBigTree );
       return (WorldGenerator) (par1Random.nextInt(10) == 0 ? new MoCWorldGenBigTree(false, MoCreatures.mocLog.blockID, 0, MoCreatures.mocLeaf.blockID, 0, 2, 30, 10) : new WorldGenShrub(3, 0) );
       
   }
 
Example #6
Source File: BiomeDesertShrubland.java    From CommunityMod with GNU Lesser General Public License v2.1 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return new WorldGenShrub(OAK_LOG, OAK_LEAVES);
}
 
Example #7
Source File: BiomeDesertShrubland.java    From Traverse-Legacy-1-12-2 with MIT License 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return new WorldGenShrub(OAK_LOG, OAK_LEAVES);
}
 
Example #8
Source File: BiomeGenOceanSpires.java    From AdvancedRocketry with MIT License 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return new WorldGenShrub(Blocks.LOG.getDefaultState(), Blocks.LEAVES.getDefaultState());
}
 
Example #9
Source File: BiomeGenMarsh.java    From AdvancedRocketry with MIT License 4 votes vote down vote up
@Override
public WorldGenAbstractTree getRandomTreeFeature(Random rand) {
	return new WorldGenShrub(Blocks.LOG.getDefaultState(), Blocks.LEAVES.getDefaultState());
}