Advertisement
Eragonn14900

Untitled

Nov 25th, 2016
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. package com.reactioncraft.core.common.biomes;
  2.  
  3.  
  4. import java.util.ArrayList;
  5. import java.util.Arrays;
  6.  
  7. import com.reactioncraft.reactioncraft;
  8. import com.reactioncraft.desert.common.BiomeGenReactionDesert;
  9.  
  10. import net.minecraft.init.Biomes;
  11. import net.minecraft.world.WorldType;
  12. import net.minecraft.world.biome.Biome;
  13. import net.minecraft.world.biome.BiomeDesert;
  14. import net.minecraft.world.biome.BiomeProvider;
  15. import net.minecraftforge.common.BiomeDictionary;
  16. import net.minecraftforge.common.BiomeDictionary.Type;
  17. import net.minecraftforge.common.BiomeManager;
  18. import net.minecraftforge.fml.common.Mod.EventHandler;
  19. import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
  20. import net.minecraftforge.fml.common.registry.GameRegistry;
  21. import net.minecraftforge.fml.common.registry.IForgeRegistry;
  22.  
  23. public class ReactionBiomeManager
  24. {
  25. public static void registerBiomes()
  26. {
  27. Biome RcDesert = new BiomeGenReactionDesert((new Biome.BiomeProperties("Darksand Desert")).setBaseBiome("desert").setBaseHeight(0.125F).setHeightVariation(0.05F).setTemperature(2.0F).setRainfall(0.0F).setRainDisabled());
  28. GameRegistry.register(RcDesert);
  29. BiomeDictionary.registerBiomeType(RcDesert, Type.DRY);
  30. BiomeManager.addSpawnBiome(RcDesert);
  31. BiomeManager.addVillageBiome(RcDesert, true);
  32. BiomeProvider.allowedBiomes.add(RcDesert);
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement