Search in sources :

Example 1 with DeferredBiomeDecorator

use of net.minecraftforge.event.terraingen.DeferredBiomeDecorator in project MinecraftForge by MinecraftForge.

the class ForgeModContainer method registerAllBiomesAndGenerateEvents.

private static void registerAllBiomesAndGenerateEvents() {
    for (Biome biome : ForgeRegistries.BIOMES.getValues()) {
        if (biome.theBiomeDecorator instanceof DeferredBiomeDecorator) {
            DeferredBiomeDecorator decorator = (DeferredBiomeDecorator) biome.theBiomeDecorator;
            decorator.fireCreateEventAndReplace(biome);
        }
        BiomeDictionary.ensureHasTypes(biome);
    }
}
Also used : Biome(net.minecraft.world.biome.Biome) DeferredBiomeDecorator(net.minecraftforge.event.terraingen.DeferredBiomeDecorator)

Aggregations

Biome (net.minecraft.world.biome.Biome)1 DeferredBiomeDecorator (net.minecraftforge.event.terraingen.DeferredBiomeDecorator)1