Advertisement
jayhillx

ModBiomes

Aug 29th, 2020
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.21 KB | None | 0 0
  1. @Mod.EventBusSubscriber(modid = "mysticsbiomes", bus = Mod.EventBusSubscriber.Bus.MOD)
  2. public class ModBiome {
  3. @SuppressWarnings("deprecation")
  4. public static final DeferredRegister<Biome> BIOMES = new DeferredRegister<>(ForgeRegistries.BIOMES, "mysticsbiomes");
  5.  
  6. public static final RegistryObject<Biome> BLOSSOM_FOREST = BIOMES.register("blossom_forest", BlossomForestBiome::new);
  7. public static final RegistryObject<Biome> STRAWBERRY_FIELDS = BIOMES.register("strawberry_fields", StrawberryFieldsBiome::new);
  8. public static final RegistryObject<Biome> LAVENDER_MEADOW = BIOMES.register("lavender_meadow", LavenderMeadowBiome::new);
  9. public static final RegistryObject<Biome> DANDELION_MEADOW = BIOMES.register("dandelion_meadow", DandelionMeadowBiome::new);
  10. public static final RegistryObject<Biome> TROPICS = BIOMES.register("tropics", TropicsBiome::new);
  11.  
  12. public static void registerBiomesToDictionary() {
  13. BiomeDictionary.addTypes(BLOSSOM_FOREST.get(), BiomeDictionary.Type.FOREST, BiomeDictionary.Type.OVERWORLD);
  14. BiomeManager.addBiome(BiomeManager.BiomeType.COOL, new BiomeManager.BiomeEntry(BLOSSOM_FOREST.get(), 2));
  15. BiomeDictionary.addTypes(STRAWBERRY_FIELDS.get(), BiomeDictionary.Type.PLAINS, BiomeDictionary.Type.PLAINS, BiomeDictionary.Type.OVERWORLD);
  16. BiomeManager.addBiome(BiomeManager.BiomeType.COOL, new BiomeManager.BiomeEntry(STRAWBERRY_FIELDS.get(), 2));
  17. BiomeDictionary.addTypes(LAVENDER_MEADOW.get(), BiomeDictionary.Type.PLAINS, BiomeDictionary.Type.PLAINS, BiomeDictionary.Type.HILLS, BiomeDictionary.Type.OVERWORLD);
  18. BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(LAVENDER_MEADOW.get(), 2));
  19. BiomeDictionary.addTypes(DANDELION_MEADOW.get(), BiomeDictionary.Type.PLAINS, BiomeDictionary.Type.PLAINS, BiomeDictionary.Type.HILLS, BiomeDictionary.Type.OVERWORLD);
  20. BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(DANDELION_MEADOW.get(), 2));
  21. BiomeDictionary.addTypes(TROPICS.get(), BiomeDictionary.Type.JUNGLE, BiomeDictionary.Type.OVERWORLD);
  22. BiomeManager.addBiome(BiomeManager.BiomeType.WARM, new BiomeManager.BiomeEntry(TROPICS.get(), 2));
  23.  
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement