/* * 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 DesertVillagePools { public static final ResourceKey START = Pools.createKey("village/desert/town_centers"); private static final ResourceKey TERMINATORS_KEY = Pools.createKey("village/desert/terminators"); private static final ResourceKey ZOMBIE_TERMINATORS_KEY = Pools.createKey("village/desert/zombie/terminators"); public static void bootstrap(BootstrapContext context) { HolderGetter placedFeatures = context.lookup(Registries.PLACED_FEATURE); Holder.Reference patchCactusVillage = placedFeatures.getOrThrow(VillagePlacements.PATCH_CACTUS_VILLAGE); Holder.Reference pileHayVillage = placedFeatures.getOrThrow(VillagePlacements.PILE_HAY_VILLAGE); HolderGetter processorLists = context.lookup(Registries.PROCESSOR_LIST); Holder.Reference zombieDesert = processorLists.getOrThrow(ProcessorLists.ZOMBIE_DESERT); Holder.Reference farmDesert = processorLists.getOrThrow(ProcessorLists.FARM_DESERT); HolderGetter pools = context.lookup(Registries.TEMPLATE_POOL); Holder.Reference empty = pools.getOrThrow(Pools.EMPTY); Holder.Reference terminators = pools.getOrThrow(TERMINATORS_KEY); Holder.Reference zombieTerminators = pools.getOrThrow(ZOMBIE_TERMINATORS_KEY); context.register(START, new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/desert/town_centers/desert_meeting_point_1"), (Object)98), (Object)Pair.of(StructurePoolElement.legacy("village/desert/town_centers/desert_meeting_point_2"), (Object)98), (Object)Pair.of(StructurePoolElement.legacy("village/desert/town_centers/desert_meeting_point_3"), (Object)49), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/town_centers/desert_meeting_point_1", zombieDesert), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/town_centers/desert_meeting_point_2", zombieDesert), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/town_centers/desert_meeting_point_3", zombieDesert), (Object)1)), StructureTemplatePool.Projection.RIGID)); Pools.register(context, "village/desert/streets", new StructureTemplatePool(terminators, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/desert/streets/corner_01"), (Object)3), (Object)Pair.of(StructurePoolElement.legacy("village/desert/streets/corner_02"), (Object)3), (Object)Pair.of(StructurePoolElement.legacy("village/desert/streets/straight_01"), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/desert/streets/straight_02"), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/desert/streets/straight_03"), (Object)3), (Object)Pair.of(StructurePoolElement.legacy("village/desert/streets/crossroad_01"), (Object)3), (Object)Pair.of(StructurePoolElement.legacy("village/desert/streets/crossroad_02"), (Object)3), (Object)Pair.of(StructurePoolElement.legacy("village/desert/streets/crossroad_03"), (Object)3), (Object)Pair.of(StructurePoolElement.legacy("village/desert/streets/square_01"), (Object)3), (Object)Pair.of(StructurePoolElement.legacy("village/desert/streets/square_02"), (Object)3), (Object)Pair.of(StructurePoolElement.legacy("village/desert/streets/turn_01"), (Object)3)), StructureTemplatePool.Projection.TERRAIN_MATCHING)); Pools.register(context, "village/desert/zombie/streets", new StructureTemplatePool(zombieTerminators, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/streets/corner_01"), (Object)3), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/streets/corner_02"), (Object)3), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/streets/straight_01"), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/streets/straight_02"), (Object)4), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/streets/straight_03"), (Object)3), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/streets/crossroad_01"), (Object)3), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/streets/crossroad_02"), (Object)3), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/streets/crossroad_03"), (Object)3), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/streets/square_01"), (Object)3), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/streets/square_02"), (Object)3), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/streets/turn_01"), (Object)3)), StructureTemplatePool.Projection.TERRAIN_MATCHING)); Pools.register(context, "village/desert/houses", new StructureTemplatePool(terminators, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_small_house_1"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_small_house_2"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_small_house_3"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_small_house_4"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_small_house_5"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_small_house_6"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_small_house_7"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_small_house_8"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_medium_house_1"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_medium_house_2"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_butcher_shop_1"), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_tool_smith_1"), (Object)2), (Object[])new Pair[]{Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_fletcher_house_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_shepherd_house_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_armorer_1"), (Object)1), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_fisher_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_tannery_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_cartographer_house_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_library_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_mason_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_weaponsmith_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_temple_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_temple_2"), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_large_farm_1", farmDesert), (Object)11), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_farm_1", farmDesert), (Object)4), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_farm_2", farmDesert), (Object)4), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_animal_pen_1"), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_animal_pen_2"), (Object)2), Pair.of(StructurePoolElement.empty(), (Object)5)}), StructureTemplatePool.Projection.RIGID)); Pools.register(context, "village/desert/zombie/houses", new StructureTemplatePool(zombieTerminators, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/houses/desert_small_house_1", zombieDesert), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/houses/desert_small_house_2", zombieDesert), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/houses/desert_small_house_3", zombieDesert), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/houses/desert_small_house_4", zombieDesert), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/houses/desert_small_house_5", zombieDesert), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/houses/desert_small_house_6", zombieDesert), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/houses/desert_small_house_7", zombieDesert), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/houses/desert_small_house_8", zombieDesert), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/houses/desert_medium_house_1", zombieDesert), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/houses/desert_medium_house_2", zombieDesert), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_butcher_shop_1", zombieDesert), (Object)2), (Object)Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_tool_smith_1", zombieDesert), (Object)2), (Object[])new Pair[]{Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_fletcher_house_1", zombieDesert), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_shepherd_house_1", zombieDesert), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_armorer_1", zombieDesert), (Object)1), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_fisher_1", zombieDesert), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_tannery_1", zombieDesert), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_cartographer_house_1", zombieDesert), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_library_1", zombieDesert), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_mason_1", zombieDesert), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_weaponsmith_1", zombieDesert), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_temple_1", zombieDesert), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_temple_2", zombieDesert), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_large_farm_1", zombieDesert), (Object)7), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_farm_1", zombieDesert), (Object)4), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_farm_2", zombieDesert), (Object)4), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_animal_pen_1", zombieDesert), (Object)2), Pair.of(StructurePoolElement.legacy("village/desert/houses/desert_animal_pen_2", zombieDesert), (Object)2), Pair.of(StructurePoolElement.empty(), (Object)5)}), StructureTemplatePool.Projection.RIGID)); context.register(TERMINATORS_KEY, new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/desert/terminators/terminator_01"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/desert/terminators/terminator_02"), (Object)1)), StructureTemplatePool.Projection.TERRAIN_MATCHING)); context.register(ZOMBIE_TERMINATORS_KEY, new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/desert/terminators/terminator_01"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/terminators/terminator_02"), (Object)1)), StructureTemplatePool.Projection.TERRAIN_MATCHING)); Pools.register(context, "village/desert/decor", new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/desert/desert_lamp_1"), (Object)10), (Object)Pair.of(StructurePoolElement.feature(patchCactusVillage), (Object)4), (Object)Pair.of(StructurePoolElement.feature(pileHayVillage), (Object)4), (Object)Pair.of(StructurePoolElement.empty(), (Object)10)), StructureTemplatePool.Projection.RIGID)); Pools.register(context, "village/desert/zombie/decor", new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/desert/desert_lamp_1", zombieDesert), (Object)10), (Object)Pair.of(StructurePoolElement.feature(patchCactusVillage), (Object)4), (Object)Pair.of(StructurePoolElement.feature(pileHayVillage), (Object)4), (Object)Pair.of(StructurePoolElement.empty(), (Object)10)), StructureTemplatePool.Projection.RIGID)); Pools.register(context, "village/desert/villagers", new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/desert/villagers/nitwit"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/desert/villagers/baby"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/desert/villagers/unemployed"), (Object)10)), StructureTemplatePool.Projection.RIGID)); Pools.register(context, "village/desert/camel", new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/desert/camel_spawn"), (Object)1)), StructureTemplatePool.Projection.RIGID)); Pools.register(context, "village/desert/zombie/villagers", new StructureTemplatePool(empty, (List, Integer>>)ImmutableList.of((Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/villagers/nitwit"), (Object)1), (Object)Pair.of(StructurePoolElement.legacy("village/desert/zombie/villagers/unemployed"), (Object)10)), StructureTemplatePool.Projection.RIGID)); } }