Guest User

Untitled

a guest
Jul 25th, 2013
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 1.94 KB | None | 0 0
  1. package co.uk.silvania.Remula.dimensions.akatoe;
  2.  
  3. import java.util.Random;
  4.  
  5. import co.uk.silvania.Remula.Remula;
  6. import co.uk.silvania.Remula.entity.akatoe.EntityGlog;
  7. import net.minecraft.block.Block;
  8. import net.minecraft.world.World;
  9. import net.minecraft.world.biome.BiomeGenBase;
  10. import net.minecraft.world.biome.SpawnListEntry;
  11. import net.minecraft.world.gen.feature.WorldGenerator;
  12.  
  13. public class BiomeAkatoePlains extends BiomeGenBase {
  14.    
  15.     AkatoeBiomeDecorator thebiomedecorator = new AkatoeBiomeDecorator();
  16.     private Object currentWorld;
  17.     private Random randomGenerator;
  18.     private int chunk_X;
  19.     private int chunk_Z;
  20.     private WorldGenerator WorldGenAkatoeTrees;
  21.    
  22.     public BiomeAkatoePlains(int id) {
  23.         super(id);
  24.         this.setBiomeName("Akatonian Plain");
  25.         this.setDisableRain();
  26.         this.spawnableMonsterList.clear();
  27.         this.spawnableCreatureList.clear();
  28.         this.spawnableWaterCreatureList.clear();
  29.         this.spawnableCreatureList.add(new SpawnListEntry(EntityGlog.class, 10, 4, 4));
  30.         this.topBlock = (byte) Remula.akatoeGrass.blockID;
  31.         this.fillerBlock = (byte) Remula.akatoeDirt.blockID;
  32.         this.maxHeight = 0.5F;
  33.         this.minHeight = 0.0F;
  34.         this.waterColorMultiplier = 0X00FF21;
  35.     }
  36.  
  37.  
  38.     public void akatoebiomedecorator(World par1World, Random par2Random, int par3, int par4) {
  39.         if (this.currentWorld != null) {
  40.             throw new RuntimeException("Already decorating!!");
  41.         } else {
  42.             this.currentWorld = par1World;
  43.             this.randomGenerator = par2Random;
  44.             this.chunk_X = par3;
  45.             this.chunk_Z = par4;
  46.             this.currentWorld = null;
  47.             this.randomGenerator = null;
  48.            
  49.            
  50.         }
  51.     }
  52.    
  53.     public WorldGenerator getRandomWorldGenForTrees(Random random) {
  54.         return (WorldGenerator) (random.nextInt(5) == 0 ? this.worldGeneratorForest : (random.nextInt(10) == 0 ? this.WorldGenAkatoeTrees : this.worldGeneratorTrees));
  55.     }
  56. }
Advertisement
Add Comment
Please, Sign In to add comment