Skip to content

Biomes API - #87

Open
SpaceWalkerRS wants to merge 2 commits into
gen2from
biomes
Open

Biomes API#87
SpaceWalkerRS wants to merge 2 commits into
gen2from
biomes

Conversation

@SpaceWalkerRS

Copy link
Copy Markdown
Member

Basic API for registering biomes.

Usage

package com.example;

import net.ornithemc.osl.biomes.api.BiomeEvents;
import net.ornithemc.osl.entrypoints.api.ModInitializer;

public class ExampleInitializer implements ModInitializer {

	@Override
	public void init() {
		BiomeEvents.REGISTER_BIOMES.register(ExampleBiomes::init);
	}
}
package com.example;

import net.minecraft.world.biome.Biome;

import net.ornithemc.osl.biomes.api.BiomeRegistry;
import net.ornithemc.osl.core.util.NamespacedIdentifiers;

public final class ExampleBiomes {

	public static final CookieBiome COOKIE = BiomeRegistry.register(NamespacedIdentifiers.from("example", "cookie"), new CookieBiome(new Biome.Settings().setName("Cookie")));

	public static void init() {
	}
}

@SpaceWalkerRS SpaceWalkerRS added the enhancement New feature or request label Sep 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant