/* * 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 SnowyVillagePools { public static final ResourceKey START = Pools.createKey("village/snowy/town_centers"); private static final ResourceKey TERMINATORS_KEY = Pools.createKey("village/snowy/terminators"); public static void bootstrap(BootstrapContext context) { HolderGetter placedFeatures = context.lookup(Registries.PLACED_FEATURE); Holder.Reference spruceVillage = placedFeatures.getOrThrow(VillagePlacements.SPRUCE_VILLAGE); Holder.Reference pileSnowVillage = placedFeatures.getOrThrow(VillagePlacements.PILE_SNOW_VILLAGE); Holder.Reference pileIceVillage = placedFeatures.getOrThrow(VillagePlacements.PILE_ICE_VILLAGE); HolderGetter processorLists = context.lookup(Registries.PROCESSOR_LIST); Holder.Reference streetSnowyOrTaiga = processorLists.getOrThrow(ProcessorLists.STREET_SNOWY_OR_TAIGA); Holder.Reference farmSnowy = processorLists.getOrThrow(ProcessorLists.FARM_SNOWY); Holder.Reference zombieSnowy = processorLists.getOrThrow(ProcessorLists.ZOMBIE_SNOWY); 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/snowy/town_centers/snowy_meeting_point_1"), (Object)100), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/town_centers/snowy_meeting_point_2"), (Object)50), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/town_centers/snowy_meeting_point_3"), (Object)150), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/town_centers/snowy_meeting_point_1"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/town_centers/snowy_meeting_point_2"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/town_centers/snowy_meeting_point_3"), (Object)3)), StructureTemplatePool.Projection.RIGID)); Pools.register(context, "village/snowy/streets", new StructureTemplatePool(terminators, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/snowy/streets/corner_01", streetSnowyOrTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/streets/corner_02", streetSnowyOrTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/streets/corner_03", streetSnowyOrTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/streets/square_01", streetSnowyOrTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/streets/straight_01", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/streets/straight_02", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/streets/straight_03", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/streets/straight_04", streetSnowyOrTaiga), (Object)7), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/streets/straight_06", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/streets/straight_08", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/streets/crossroad_02", streetSnowyOrTaiga), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/streets/crossroad_03", streetSnowyOrTaiga), (Object)2), (Object[])new Pair[]{Pair.of(StructurePoolElement.legacy("village/snowy/streets/crossroad_04", streetSnowyOrTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/streets/crossroad_05", streetSnowyOrTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/streets/crossroad_06", streetSnowyOrTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/streets/turn_01", streetSnowyOrTaiga), (Object)3)}), StructureTemplatePool.Projection.TERRAIN_MATCHING)); Pools.register(context, "village/snowy/zombie/streets", new StructureTemplatePool(terminators, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/streets/corner_01", streetSnowyOrTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/streets/corner_02", streetSnowyOrTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/streets/corner_03", streetSnowyOrTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/streets/square_01", streetSnowyOrTaiga), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/streets/straight_01", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/streets/straight_02", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/streets/straight_03", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/streets/straight_04", streetSnowyOrTaiga), (Object)7), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/streets/straight_06", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/streets/straight_08", streetSnowyOrTaiga), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/streets/crossroad_02", streetSnowyOrTaiga), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/streets/crossroad_03", streetSnowyOrTaiga), (Object)2), (Object[])new Pair[]{Pair.of(StructurePoolElement.legacy("village/snowy/zombie/streets/crossroad_04", streetSnowyOrTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/zombie/streets/crossroad_05", streetSnowyOrTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/zombie/streets/crossroad_06", streetSnowyOrTaiga), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/zombie/streets/turn_01", streetSnowyOrTaiga), (Object)3)}), StructureTemplatePool.Projection.TERRAIN_MATCHING)); Pools.register(context, "village/snowy/houses", new StructureTemplatePool(terminators, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_small_house_1"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_small_house_2"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_small_house_3"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_small_house_4"), (Object)3), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_small_house_5"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_small_house_6"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_small_house_7"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_small_house_8"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_medium_house_1"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_medium_house_2"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_medium_house_3"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_butchers_shop_1"), (Object)2), (Object[])new Pair[]{Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_butchers_shop_2"), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_tool_smith_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_fletcher_house_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_shepherds_house_1"), (Object)3), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_armorer_house_1"), (Object)1), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_armorer_house_2"), (Object)1), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_fisher_cottage"), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_tannery_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_cartographer_house_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_library_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_masons_house_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_masons_house_2"), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_weapon_smith_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_temple_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_farm_1", farmSnowy), (Object)3), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_farm_2", farmSnowy), (Object)3), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_animal_pen_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_animal_pen_2"), (Object)2), Pair.of(StructurePoolElement.empty(), (Object)6)}), StructureTemplatePool.Projection.RIGID)); Pools.register(context, "village/snowy/zombie/houses", new StructureTemplatePool(terminators, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/houses/snowy_small_house_1", zombieSnowy), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/houses/snowy_small_house_2", zombieSnowy), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/houses/snowy_small_house_3", zombieSnowy), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/houses/snowy_small_house_4", zombieSnowy), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/houses/snowy_small_house_5", zombieSnowy), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/houses/snowy_small_house_6", zombieSnowy), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/houses/snowy_small_house_7", zombieSnowy), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/houses/snowy_small_house_8", zombieSnowy), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/houses/snowy_medium_house_1", zombieSnowy), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/houses/snowy_medium_house_2", zombieSnowy), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/houses/snowy_medium_house_3", zombieSnowy), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_butchers_shop_1", zombieSnowy), (Object)2), (Object[])new Pair[]{Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_butchers_shop_2", zombieSnowy), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_tool_smith_1", zombieSnowy), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_fletcher_house_1", zombieSnowy), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_shepherds_house_1", zombieSnowy), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_armorer_house_1", zombieSnowy), (Object)1), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_armorer_house_2", zombieSnowy), (Object)1), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_fisher_cottage", zombieSnowy), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_tannery_1", zombieSnowy), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_cartographer_house_1", zombieSnowy), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_library_1", zombieSnowy), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_masons_house_1", zombieSnowy), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_masons_house_2", zombieSnowy), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_weapon_smith_1", zombieSnowy), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_temple_1", zombieSnowy), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_farm_1", zombieSnowy), (Object)3), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_farm_2", zombieSnowy), (Object)3), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_animal_pen_1", zombieSnowy), (Object)2), Pair.of(StructurePoolElement.legacy("village/snowy/houses/snowy_animal_pen_2", zombieSnowy), (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/snowy/trees", new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.feature(spruceVillage), (Object)1)), StructureTemplatePool.Projection.RIGID)); Pools.register(context, "village/snowy/decor", new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/snowy/snowy_lamp_post_01"), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/snowy_lamp_post_02"), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/snowy_lamp_post_03"), (Object)1), (Object)Pair.of(StructurePoolElement.feature(spruceVillage), (Object)4), (Object)Pair.of(StructurePoolElement.feature(pileSnowVillage), (Object)4), (Object)Pair.of(StructurePoolElement.feature(pileIceVillage), (Object)1), (Object)Pair.of(StructurePoolElement.empty(), (Object)9)), StructureTemplatePool.Projection.RIGID)); Pools.register(context, "village/snowy/zombie/decor", new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/snowy/snowy_lamp_post_01", zombieSnowy), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/snowy_lamp_post_02", zombieSnowy), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/snowy_lamp_post_03", zombieSnowy), (Object)1), (Object)Pair.of(StructurePoolElement.feature(spruceVillage), (Object)4), (Object)Pair.of(StructurePoolElement.feature(pileSnowVillage), (Object)4), (Object)Pair.of(StructurePoolElement.feature(pileIceVillage), (Object)4), (Object)Pair.of(StructurePoolElement.empty(), (Object)7)), StructureTemplatePool.Projection.RIGID)); Pools.register(context, "village/snowy/villagers", new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/snowy/villagers/nitwit"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/villagers/baby"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/villagers/unemployed"), (Object)10)), StructureTemplatePool.Projection.RIGID)); Pools.register(context, "village/snowy/zombie/villagers", new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/villagers/nitwit"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/snowy/zombie/villagers/unemployed"), (Object)10)), StructureTemplatePool.Projection.RIGID)); } }