Advertisement
Guest User

Untitled

a guest
May 8th, 2016
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. package fr.craftesys.crftesys.biome;
  2.  
  3. import java.util.Random;
  4.  
  5. import net.minecraft.world.gen.feature.WorldGenTrees;
  6. import net.minecraft.world.gen.feature.WorldGenerator;
  7.  
  8. public class Arbre {
  9.  
  10.  
  11. public Arbre(int par1) {
  12. super();
  13.  
  14.  
  15. }
  16.  
  17.  
  18. this.spawnableCreatureList.add(new SpawnListEntry(EntityCreatureTutorial.class, 10, 3, 6));
  19. this.spawnableMonsterList.add(new SpawnListEntry(EntityMonsterTutorial.class, 10, 3, 6));
  20. this.spawnableWaterCreatureList.add(new SpawnListEntry(EntityWaterTutorial.class, 10, 3, 6));
  21. this.spawnableCaveCreatureList.add(new SpawnListEntry(EntityCaveTutorial.class, 10, 3, 6));
  22. this.topBlock = (byte)Block.blockRedstone.blockID;
  23. this.fillerBlock = (byte)Block.blockRedstone.blockID;
  24. this.theBiomeDecorator.treesPerChunk = 10;
  25.  
  26. this.waterColorMultiplier = 0x00FFFF;
  27. this.grassPerChunk = 1;
  28. public WorldGenerator getRandomWorldGenForTrees(Random par1Random){
  29.  
  30. return (WorldGenerator)(par1Random.nextInt(5) == 0 ? new WorldGenTrees(false, 4, 2, 2, false) : (par1Random.nextInt(10) == 0 ? this.worldGeneratorBigTree : new WorldGenTrees(false, 40, 0, 0, true)));
  31. }
  32. }
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement