Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class MysticBiomes {
- public static final DeferredRegister<Biome> BIOMES = create(ForgeRegistries.BIOMES, MysticsBiomes.modId);
- public static final RegistryObject<Biome> LAVENDER_MEADOW = BIOMES.register("lavender_meadow", LavenderMeadow::lavenderMeadowBiome);
- /** Registers biomes. */
- public static void registerBiomes() {
- setupBiome(LAVENDER_MEADOW.get(), 3, BiomeType.WARM, Type.OVERWORLD, Type.PLAINS, Type.MAGICAL);
- }
- public static void setupBiome(final Biome biome, final int weight, final BiomeType biomeType, final Type... types) {
- BiomeDictionary.addTypes(key(biome), types);
- BiomeManager.addBiome(biomeType, new BiomeEntry(key(biome), weight));
- }
- private static ResourceKey<Biome> key(final Biome biome) {
- return ResourceKey.create(ForgeRegistries.Keys.BIOMES, ForgeRegistries.BIOMES.getKey(biome));
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement