My code:
@SubscribeEvent
public static void addFeaturesToBiomes(BiomeLoadingEvent event) {
for (FeatureRegistration registration : FEATURE_REGISTRATIONS) {
if (registration.biomes() == null || registration.biomes().contains(event.getName()))
event.getGeneration().getFeatures(registration.stage()).add(registration.placedFeature().get());
}
}
At BiomeLoadingEvent I get the following error:
BiomeLoadingEvent cannot be resolved to a type
-----------------------------------------
Imports:
import net.minecraftforge.event.world.BiomeLoadingEvent;
And in the imports I also get an error:
The import net.minecraftforge.event.world.BiomeLoadingEvent cannot be resolved
It would be great if you could help me. 🙂