use of net.minecraft.core.RegistryAccess in project Tropicraft by Tropicraft.
the class TropicraftTrees method create.
private static AbstractTreeGrower create(String id) {
ResourceKey<ConfiguredFeature<?, ?>> key = ResourceKey.create(Registry.CONFIGURED_FEATURE_REGISTRY, new ResourceLocation(net.tropicraft.Constants.MODID, id));
return create((server, random, beehive) -> {
RegistryAccess registries = server.registryAccess();
Registry<ConfiguredFeature<?, ?>> features = registries.registryOrThrow(Registry.CONFIGURED_FEATURE_REGISTRY);
return features.get(key);
});
}
Aggregations