Guest User

WorldRegister

a guest
Jan 4th, 2020
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. package fr.yalouor.mod.world;
  2.  
  3. import cpw.mods.fml.common.IWorldGenerator;
  4. import cpw.mods.fml.common.registry.GameRegistry;
  5.  
  6. public class WorldRegister
  7.  
  8. {
  9. public static void mainRegistry()
  10. {
  11. registerWorldGen(new WorldGen(), -1);
  12. registerWorldGen(new WorldGen(), 0);
  13. registerWorldGen(new WorldGen(), 1);
  14. }
  15.  
  16. public static void registerWorldGen(IWorldGenerator iGenerator, int probability)
  17. {
  18. GameRegistry.registerWorldGenerator(iGenerator, probability);
  19. }
  20. }
Add Comment
Please, Sign In to add comment