FeatureUtils .java

net.minecraft.data.worldgen.features.FeatureUtils (class): members: createKey, bootstrap. imports: Feature, BootstrapContext, ResourceKey, Registries.

net.minecraft.data.worldgen.featuresclass26 linescommon894 B

API Surface (2)

void bootstrap(final BootstrapContext<Feature> context)
ResourceKey<Feature> createKey(final String name)

Full Source

FeatureUtils.java26 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.data.worldgen.features;
2
3
import net.minecraft.core.registries.Registries;
4
import net.minecraft.data.worldgen.BootstrapContext;
5
import net.minecraft.resources.Identifier;
6
import net.minecraft.resources.ResourceKey;
7
import net.minecraft.world.level.levelgen.feature.Feature;
8
9
public class FeatureUtils {
10
	public static void bootstrap(final BootstrapContext<Feature> context) {
11
		AquaticFeatures.bootstrap(context);
12
		CaveFeatures.bootstrap(context);
13
		EndFeatures.bootstrap(context);
14
		MiscOverworldFeatures.bootstrap(context);
15
		NetherFeatures.bootstrap(context);
16
		OreFeatures.bootstrap(context);
17
		PileFeatures.bootstrap(context);
18
		TreeFeatures.bootstrap(context);
19
		VegetationFeatures.bootstrap(context);
20
	}
21
22
	public static ResourceKey<Feature> createKey(final String name) {
23
		return ResourceKey.create(Registries.FEATURE, Identifier.withDefaultNamespace(name));
24
	}
25
}
26

Decompiled Minecraft 26.3 source of FeatureUtils (net/minecraft/data/worldgen/features/FeatureUtils.java) with Mojang official mappings, stored verbatim on the site.