/* * Decompiled with CFR 0.152. * * Could not load the following classes: * com.google.common.collect.ImmutableList * com.mojang.datafixers.util.Pair */ package net.minecraft.data.worldgen; import com.google.common.collect.ImmutableList; import com.mojang.datafixers.util.Pair; import java.util.List; import java.util.function.Function; import net.minecraft.core.Holder; import net.minecraft.core.HolderGetter; import net.minecraft.core.registries.Registries; import net.minecraft.data.worldgen.BootstrapContext; import net.minecraft.data.worldgen.Pools; import net.minecraft.data.worldgen.ProcessorLists; import net.minecraft.data.worldgen.placement.VillagePlacements; import net.minecraft.resources.ResourceKey; import net.minecraft.world.level.levelgen.placement.PlacedFeature; import net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement; import net.minecraft.world.level.levelgen.structure.pools.StructureTemplatePool; import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorList; public class TaigaVillagePools { public static final ResourceKey START = Pools.createKey("village/taiga/town_centers"); private static final ResourceKey TERMINATORS_KEY = Pools.createKey("village/taiga/terminators"); public static void bootstrap(BootstrapContext context) { HolderGetter placedFeatures = context.lookup(Registries.PLACED_FEATURE); Holder.Reference spruceVillage = placedFeatures.getOrThrow(VillagePlacements.SPRUCE_VILLAGE); Holder.Reference pineVillage = placedFeatures.getOrThrow(VillagePlacements.PINE_VILLAGE); Holder.Reference pilePumpkinVillage = placedFeatures.getOrThrow(VillagePlacements.PILE_PUMPKIN_VILLAGE); Holder.Reference patchTaigaGrassVillage = placedFeatures.getOrThrow(VillagePlacements.PATCH_TAIGA_GRASS_VILLAGE); Holder.Reference patchBerryBushVillage = placedFeatures.getOrThrow(VillagePlacements.PATCH_BERRY_BUSH_VILLAGE); HolderGetter processorLists = context.lookup(Registries.PROCESSOR_LIST); Holder.Reference mossify10Percent = processorLists.getOrThrow(ProcessorLists.MOSSIFY_10_PERCENT); Holder.Reference zombieTaiga = processorLists.getOrThrow(ProcessorLists.ZOMBIE_TAIGA); Holder.Reference streetSnowyOrTaiga = processorLists.getOrThrow(ProcessorLists.STREET_SNOWY_OR_TAIGA); Holder.Reference farmTaiga = processorLists.getOrThrow(ProcessorLists.FARM_TAIGA); HolderGetter pools = context.lookup(Registries.TEMPLATE_POOL); Holder.Reference empty = pools.getOrThrow(Pools.EMPTY); Holder.Reference terminators = pools.getOrThrow(TERMINATORS_KEY); context.register(START, new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/taiga/town_centers/taiga_meeting_point_1", mossify10Percent), (Object)49), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/town_centers/taiga_meeting_point_2", mossify10Percent), (Object)49), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/town_centers/taiga_meeting_point_1", zombieTaiga), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/town_centers/taiga_meeting_point_2", zombieTaiga), (Object)1)), StructureTemplatePool.Projection.RIGID)); Pools.register(context, "village/taiga/streets", new StructureTemplatePool(terminators, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/taiga/streets/corner_01", streetSnowyOrTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/streets/corner_02", streetSnowyOrTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/streets/corner_03", streetSnowyOrTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/streets/straight_01", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/streets/straight_02", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/streets/straight_03", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/streets/straight_04", streetSnowyOrTaiga), (Object)7), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/streets/straight_05", streetSnowyOrTaiga), (Object)7), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/streets/straight_06", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/streets/crossroad_01", streetSnowyOrTaiga), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/streets/crossroad_02", streetSnowyOrTaiga), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/streets/crossroad_03", streetSnowyOrTaiga), (Object)2), (Object[])new Pair[]{Pair.of(StructurePoolElement.legacy("village/taiga/streets/crossroad_04", streetSnowyOrTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/streets/crossroad_05", streetSnowyOrTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/streets/crossroad_06", streetSnowyOrTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/streets/turn_01", streetSnowyOrTaiga), (Object)3)}), StructureTemplatePool.Projection.TERRAIN_MATCHING)); Pools.register(context, "village/taiga/zombie/streets", new StructureTemplatePool(terminators, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/streets/corner_01", streetSnowyOrTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/streets/corner_02", streetSnowyOrTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/streets/corner_03", streetSnowyOrTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/streets/straight_01", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/streets/straight_02", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/streets/straight_03", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/streets/straight_04", streetSnowyOrTaiga), (Object)7), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/streets/straight_05", streetSnowyOrTaiga), (Object)7), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/streets/straight_06", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/streets/crossroad_01", streetSnowyOrTaiga), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/streets/crossroad_02", streetSnowyOrTaiga), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/streets/crossroad_03", streetSnowyOrTaiga), (Object)2), (Object[])new Pair[]{Pair.of(StructurePoolElement.legacy("village/taiga/zombie/streets/crossroad_04", streetSnowyOrTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/zombie/streets/crossroad_05", streetSnowyOrTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/zombie/streets/crossroad_06", streetSnowyOrTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/zombie/streets/turn_01", streetSnowyOrTaiga), (Object)3)}), StructureTemplatePool.Projection.TERRAIN_MATCHING)); Pools.register(context, "village/taiga/houses", new StructureTemplatePool(terminators, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_small_house_1", mossify10Percent), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_small_house_2", mossify10Percent), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_small_house_3", mossify10Percent), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_small_house_4", mossify10Percent), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_small_house_5", mossify10Percent), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_medium_house_1", mossify10Percent), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_medium_house_2", mossify10Percent), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_medium_house_3", mossify10Percent), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_medium_house_4", mossify10Percent), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_butcher_shop_1", mossify10Percent), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_tool_smith_1", mossify10Percent), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_fletcher_house_1", mossify10Percent), (Object)2), (Object[])new Pair[]{Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_shepherds_house_1", mossify10Percent), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_armorer_house_1", mossify10Percent), (Object)1), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_armorer_2", mossify10Percent), (Object)1), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_fisher_cottage_1", mossify10Percent), (Object)3), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_tannery_1", mossify10Percent), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_cartographer_house_1", mossify10Percent), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_library_1", mossify10Percent), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_masons_house_1", mossify10Percent), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_weaponsmith_1", mossify10Percent), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_weaponsmith_2", mossify10Percent), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_temple_1", mossify10Percent), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_large_farm_1", farmTaiga), (Object)6), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_large_farm_2", farmTaiga), (Object)6), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_small_farm_1", mossify10Percent), (Object)1), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_animal_pen_1", mossify10Percent), (Object)2), Pair.of(StructurePoolElement.empty(), (Object)6)}), StructureTemplatePool.Projection.RIGID)); Pools.register(context, "village/taiga/zombie/houses", new StructureTemplatePool(terminators, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/houses/taiga_small_house_1", zombieTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/houses/taiga_small_house_2", zombieTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/houses/taiga_small_house_3", zombieTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/houses/taiga_small_house_4", zombieTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/houses/taiga_small_house_5", zombieTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/houses/taiga_medium_house_1", zombieTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/houses/taiga_medium_house_2", zombieTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/houses/taiga_medium_house_3", zombieTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/houses/taiga_medium_house_4", zombieTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_butcher_shop_1", zombieTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/houses/taiga_tool_smith_1", zombieTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_fletcher_house_1", zombieTaiga), (Object)2), (Object[])new Pair[]{Pair.of(StructurePoolElement.legacy("village/taiga/zombie/houses/taiga_shepherds_house_1", zombieTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_armorer_house_1", zombieTaiga), (Object)1), Pair.of(StructurePoolElement.legacy("village/taiga/zombie/houses/taiga_fisher_cottage_1", zombieTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_tannery_1", zombieTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/zombie/houses/taiga_cartographer_house_1", zombieTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/zombie/houses/taiga_library_1", zombieTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_masons_house_1", zombieTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_weaponsmith_1", zombieTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/zombie/houses/taiga_weaponsmith_2", zombieTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/zombie/houses/taiga_temple_1", zombieTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_large_farm_1", zombieTaiga), (Object)6), Pair.of(StructurePoolElement.legacy("village/taiga/zombie/houses/taiga_large_farm_2", zombieTaiga), (Object)6), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_small_farm_1", zombieTaiga), (Object)1), Pair.of(StructurePoolElement.legacy("village/taiga/houses/taiga_animal_pen_1", zombieTaiga), (Object)2), Pair.of(StructurePoolElement.empty(), (Object)6)}), StructureTemplatePool.Projection.RIGID)); context.register(TERMINATORS_KEY, new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/plains/terminators/terminator_01", streetSnowyOrTaiga), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/plains/terminators/terminator_02", streetSnowyOrTaiga), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/plains/terminators/terminator_03", streetSnowyOrTaiga), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/plains/terminators/terminator_04", streetSnowyOrTaiga), (Object)1)), StructureTemplatePool.Projection.TERRAIN_MATCHING)); Pools.register(context, "village/taiga/decor", new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/taiga/taiga_lamp_post_1"), (Object)10), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/taiga_decoration_1"), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/taiga_decoration_2"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/taiga_decoration_3"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/taiga_decoration_4"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/taiga_decoration_5"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/taiga_decoration_6"), (Object)1), (Object)Pair.of(StructurePoolElement.feature(spruceVillage), (Object)4), (Object)Pair.of(StructurePoolElement.feature(pineVillage), (Object)4), (Object)Pair.of(StructurePoolElement.feature(pilePumpkinVillage), (Object)2), (Object)Pair.of(StructurePoolElement.feature(patchTaigaGrassVillage), (Object)4), (Object)Pair.of(StructurePoolElement.feature(patchBerryBushVillage), (Object)1), (Object[])new Pair[]{Pair.of(StructurePoolElement.empty(), (Object)4)}), StructureTemplatePool.Projection.RIGID)); Pools.register(context, "village/taiga/zombie/decor", new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/taiga/taiga_decoration_1"), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/taiga_decoration_2"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/taiga_decoration_3"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/taiga_decoration_4"), (Object)1), (Object)Pair.of(StructurePoolElement.feature(spruceVillage), (Object)4), (Object)Pair.of(StructurePoolElement.feature(pineVillage), (Object)4), (Object)Pair.of(StructurePoolElement.feature(pilePumpkinVillage), (Object)2), (Object)Pair.of(StructurePoolElement.feature(patchTaigaGrassVillage), (Object)4), (Object)Pair.of(StructurePoolElement.feature(patchBerryBushVillage), (Object)1), (Object)Pair.of(StructurePoolElement.empty(), (Object)4)), StructureTemplatePool.Projection.RIGID)); Pools.register(context, "village/taiga/villagers", new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/taiga/villagers/nitwit"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/villagers/baby"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/villagers/unemployed"), (Object)10)), StructureTemplatePool.Projection.RIGID)); Pools.register(context, "village/taiga/zombie/villagers", new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/villagers/nitwit"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/taiga/zombie/villagers/unemployed"), (Object)10)), StructureTemplatePool.Projection.RIGID)); } }