Guest User

Untitled

a guest
Aug 28th, 2015
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.59 KB | None | 0 0
  1. package com.halestormxv.worldALT.biomes;
  2.  
  3. import java.util.Random;
  4.  
  5. import com.halestormxv.blocks.CelestialCraft_blocks;
  6. import com.halestormxv.worldALT.biomes.decorators.BiomeDecoratorMod;
  7.  
  8.  
  9. import net.minecraft.init.Blocks;
  10. import net.minecraft.world.World;
  11. import net.minecraft.world.gen.feature.WorldGenTallGrass;
  12. import net.minecraft.world.gen.feature.WorldGenVines;
  13. import net.minecraft.world.gen.feature.WorldGenerator;
  14.  
  15. public class BiomeLightForest extends ModBiomes{
  16.  
  17.     public static int treesPerChunk;
  18.  
  19.     protected BiomeDecoratorMod decorator;
  20.  
  21.     public BiomeLightForest(int biomeId) {
  22.         super(biomeId);
  23.         BiomeLightForest.treesPerChunk = 2;
  24.         this.topBlock = CelestialCraft_blocks.CelTurf;
  25.         this.fillerBlock = CelestialCraft_blocks.CelFillStone;
  26.     }
  27.  
  28.     /**
  29.      * Gets a WorldGen appropriate for this biome.
  30.      */
  31.     public WorldGenerator getRandomWorldGenForGrass(Random random){
  32.         return random.nextInt(2) == 0 ? new WorldGenTallGrass(Blocks.tallgrass, 1) : new WorldGenTallGrass(Blocks.tallgrass, 2);
  33.     }
  34.  
  35.     /**
  36.      * Remove this to remove vines from dimension
  37.      */
  38.     public void decorate(World world, Random random, int par3, int par4) {
  39.         super.decorate(world, random, par3, par4);
  40. //        WorldGenVines worldgenvines = new WorldGenVines();
  41. //
  42. //        for (int k = 0; k < 50; ++k) {
  43. //            int l = par3 + random.nextInt(16) + 8;
  44. //            byte b0 = 64;
  45. //            int i1 = par4 + random.nextInt(16) + 8;
  46. //            worldgenvines.generate(world, random, l, b0, i1);
  47. //        }
  48.     }
  49. }
Advertisement
Add Comment
Please, Sign In to add comment