Guest User

Untitled

a guest
Jun 19th, 2016
32
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package fr.craftesys.craftesys.generation;
  2.  
  3. import net.minecraft.world.biome.BiomeGenBase;
  4. import net.minecraftforge.common.BiomeDictionary;
  5. import net.minecraftforge.common.BiomeDictionary.Type;
  6. import net.minecraftforge.common.BiomeManager;
  7.  
  8. public class BiomeRegistry
  9. {
  10. public static void addBiome(){
  11. initializeBiome();
  12. registerBiome();
  13. }
  14.  
  15. public static BiomeGenBase biomeTest;
  16.  
  17. public static void initializeBiome(){
  18.  
  19. biomeTest = new BiomeTest(137).setBiomeName("biomeTest").setTemperatureRainfall(1.2F, 0.9F);
  20.  
  21. }
  22.  
  23. public static void registerBiome(){
  24. BiomeDictionary.registerBiomeType(biomeTest, Type.PLAINS);
  25. BiomeManager.addSpawnBiome(biomeTest);
  26.  
  27. }
  28. }
RAW Paste Data