Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package com.meepshadow.mysticsbiomes.init;
- import com.meepshadow.mysticsbiomes.MysticsBiomes;
- import com.meepshadow.mysticsbiomes.world.biomes.DandelionMeadowBiome;
- import com.meepshadow.mysticsbiomes.world.biomes.LavenderMeadowBiome;
- import com.meepshadow.mysticsbiomes.world.biomes.StrawberryFieldsBiome;
- import net.minecraft.world.biome.Biome;
- import net.minecraftforge.common.BiomeDictionary;
- import net.minecraftforge.common.BiomeManager;
- import net.minecraftforge.fml.RegistryObject;
- import net.minecraftforge.registries.DeferredRegister;
- import net.minecraftforge.registries.ForgeRegistries;
- import net.minecraftforge.common.BiomeManager.BiomeEntry;
- import net.minecraftforge.common.BiomeManager.BiomeType;
- public class ModBiome {
- @SuppressWarnings("deprecation")
- public static final DeferredRegister<Biome> BIOMES = new DeferredRegister<>(ForgeRegistries.BIOMES, MysticsBiomes.MOD_ID);
- public static final RegistryObject<Biome> STRAWBERRY_FIELDS = BIOMES.register("strawberry_fields", StrawberryFieldsBiome::new);
- public static final RegistryObject<Biome> LAVENDER_MEADOW = BIOMES.register("lavender_meadow", LavenderMeadowBiome::new);
- public static final RegistryObject<Biome> DANDELION_MEADOW = BIOMES.register("dandelion_meadow", DandelionMeadowBiome::new);
- public static void registerBiomes() {
- registerBiome(STRAWBERRY_FIELDS.get(), BiomeDictionary.Type.PLAINS, BiomeDictionary.Type.OVERWORLD);
- registerBiome(LAVENDER_MEADOW.get(), BiomeDictionary.Type.PLAINS, BiomeDictionary.Type.OVERWORLD);
- registerBiome(DANDELION_MEADOW.get(), BiomeDictionary.Type.PLAINS, BiomeDictionary.Type.OVERWORLD);
- }
- public static void registerBiome(Biome biome, BiomeDictionary.Type... types) {
- BiomeDictionary.addTypes(biome, types);
- BiomeManager.addSpawnBiome(biome);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement