package net.minecraft.world.level.levelgen.feature;

import net.minecraft.world.level.block.state.StateHolder;
import net.minecraft.world.level.levelgen.feature.structures.FeaturePoolElement;
import net.minecraft.world.level.biome.BiomeDefaultFeatures;
import net.minecraft.world.level.levelgen.feature.structures.EmptyPoolElement;
import net.minecraft.world.level.levelgen.feature.structures.StructurePoolElement;
import net.minecraft.world.level.levelgen.feature.structures.StructureTemplatePool;
import com.mojang.datafixers.util.Pair;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor;
import net.minecraft.world.level.levelgen.feature.structures.LegacySinglePoolElement;
import net.minecraft.resources.ResourceLocation;
import net.minecraft.world.level.levelgen.feature.structures.JigsawPlacement;
import java.util.List;
import net.minecraft.world.level.levelgen.structure.templatesystem.RuleProcessor;
import com.google.common.collect.ImmutableList;
import net.minecraft.world.level.levelgen.structure.templatesystem.BlockStateMatchTest;
import net.minecraft.world.level.block.IronBarsBlock;
import net.minecraft.world.level.block.state.properties.Property;
import net.minecraft.world.level.block.CampfireBlock;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.levelgen.structure.templatesystem.BlockMatchTest;
import net.minecraft.world.level.block.Block;
import net.minecraft.tags.Tag;
import net.minecraft.world.level.levelgen.structure.templatesystem.TagMatchTest;
import net.minecraft.tags.BlockTags;
import net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest;
import net.minecraft.world.level.levelgen.structure.templatesystem.ProcessorRule;
import net.minecraft.world.level.levelgen.structure.templatesystem.AlwaysTrueTest;
import net.minecraft.world.level.levelgen.structure.templatesystem.RandomBlockMatchTest;
import net.minecraft.world.level.block.Blocks;

public class TaigaVillagePools {
    public static void bootstrap() {
    }
    
    static {
        final ImmutableList<StructureProcessor> immutableList1 = ImmutableList.of(new RuleProcessor(ImmutableList.<ProcessorRule>of(new ProcessorRule(new RandomBlockMatchTest(Blocks.COBBLESTONE, 0.8f), AlwaysTrueTest.INSTANCE, Blocks.MOSSY_COBBLESTONE.defaultBlockState()), new ProcessorRule(new TagMatchTest(BlockTags.DOORS), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()), new ProcessorRule(new BlockMatchTest(Blocks.TORCH), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()), new ProcessorRule(new BlockMatchTest(Blocks.WALL_TORCH), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()), new ProcessorRule(new BlockMatchTest(Blocks.CAMPFIRE), AlwaysTrueTest.INSTANCE, ((StateHolder<O, BlockState>)Blocks.CAMPFIRE.defaultBlockState()).<Comparable, Boolean>setValue((Property<Comparable>)CampfireBlock.LIT, false)), new ProcessorRule(new RandomBlockMatchTest(Blocks.COBBLESTONE, 0.08f), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()), new ProcessorRule(new RandomBlockMatchTest(Blocks.SPRUCE_LOG, 0.08f), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()), new ProcessorRule(new RandomBlockMatchTest(Blocks.GLASS_PANE, 0.5f), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()), new ProcessorRule(new BlockStateMatchTest((((StateHolder<O, BlockState>)Blocks.GLASS_PANE.defaultBlockState()).setValue((Property<Comparable>)IronBarsBlock.NORTH, true)).<Comparable, Boolean>setValue((Property<Comparable>)IronBarsBlock.SOUTH, true)), AlwaysTrueTest.INSTANCE, (((StateHolder<O, BlockState>)Blocks.BROWN_STAINED_GLASS_PANE.defaultBlockState()).setValue((Property<Comparable>)IronBarsBlock.NORTH, true)).<Comparable, Boolean>setValue((Property<Comparable>)IronBarsBlock.SOUTH, true)), new ProcessorRule(new BlockStateMatchTest((((StateHolder<O, BlockState>)Blocks.GLASS_PANE.defaultBlockState()).setValue((Property<Comparable>)IronBarsBlock.EAST, true)).<Comparable, Boolean>setValue((Property<Comparable>)IronBarsBlock.WEST, true)), AlwaysTrueTest.INSTANCE, (((StateHolder<O, BlockState>)Blocks.BROWN_STAINED_GLASS_PANE.defaultBlockState()).setValue((Property<Comparable>)IronBarsBlock.EAST, true)).<Comparable, Boolean>setValue((Property<Comparable>)IronBarsBlock.WEST, true)), new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.3f), AlwaysTrueTest.INSTANCE, Blocks.PUMPKIN_STEM.defaultBlockState()), new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.2f), AlwaysTrueTest.INSTANCE, Blocks.POTATOES.defaultBlockState()), new ProcessorRule[0])));
        final ImmutableList<StructureProcessor> immutableList2 = ImmutableList.of(new RuleProcessor(ImmutableList.<ProcessorRule>of(new ProcessorRule(new RandomBlockMatchTest(Blocks.COBBLESTONE, 0.1f), AlwaysTrueTest.INSTANCE, Blocks.MOSSY_COBBLESTONE.defaultBlockState()))));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/taiga/town_centers"), new ResourceLocation("empty"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/taiga/town_centers/taiga_meeting_point_1", immutableList2), 49), new Pair(new LegacySinglePoolElement("village/taiga/town_centers/taiga_meeting_point_2", immutableList2), 49), new Pair(new LegacySinglePoolElement("village/taiga/zombie/town_centers/taiga_meeting_point_1", immutableList1), 1), new Pair(new LegacySinglePoolElement("village/taiga/zombie/town_centers/taiga_meeting_point_2", immutableList1), 1)), StructureTemplatePool.Projection.RIGID));
        final ImmutableList<StructureProcessor> immutableList3 = ImmutableList.of(new RuleProcessor(ImmutableList.<ProcessorRule>of(new ProcessorRule(new BlockMatchTest(Blocks.GRASS_PATH), new BlockMatchTest(Blocks.WATER), Blocks.SPRUCE_PLANKS.defaultBlockState()), new ProcessorRule(new RandomBlockMatchTest(Blocks.GRASS_PATH, 0.2f), AlwaysTrueTest.INSTANCE, Blocks.GRASS_BLOCK.defaultBlockState()), new ProcessorRule(new BlockMatchTest(Blocks.GRASS_BLOCK), new BlockMatchTest(Blocks.WATER), Blocks.WATER.defaultBlockState()), new ProcessorRule(new BlockMatchTest(Blocks.DIRT), new BlockMatchTest(Blocks.WATER), Blocks.WATER.defaultBlockState()))));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/taiga/streets"), new ResourceLocation("village/taiga/terminators"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/taiga/streets/corner_01", immutableList3), 2), new Pair(new LegacySinglePoolElement("village/taiga/streets/corner_02", immutableList3), 2), new Pair(new LegacySinglePoolElement("village/taiga/streets/corner_03", immutableList3), 2), new Pair(new LegacySinglePoolElement("village/taiga/streets/straight_01", immutableList3), 4), new Pair(new LegacySinglePoolElement("village/taiga/streets/straight_02", immutableList3), 4), new Pair(new LegacySinglePoolElement("village/taiga/streets/straight_03", immutableList3), 4), new Pair(new LegacySinglePoolElement("village/taiga/streets/straight_04", immutableList3), 7), new Pair(new LegacySinglePoolElement("village/taiga/streets/straight_05", immutableList3), 7), new Pair(new LegacySinglePoolElement("village/taiga/streets/straight_06", immutableList3), 4), new Pair(new LegacySinglePoolElement("village/taiga/streets/crossroad_01", immutableList3), 1), new Pair(new LegacySinglePoolElement("village/taiga/streets/crossroad_02", immutableList3), 1), new Pair(new LegacySinglePoolElement("village/taiga/streets/crossroad_03", immutableList3), 2), new Pair(new LegacySinglePoolElement("village/taiga/streets/crossroad_04", immutableList3), 2), new Pair(new LegacySinglePoolElement("village/taiga/streets/crossroad_05", immutableList3), 2), new Pair(new LegacySinglePoolElement("village/taiga/streets/crossroad_06", immutableList3), 2), new Pair(new LegacySinglePoolElement("village/taiga/streets/turn_01", immutableList3), 3)), StructureTemplatePool.Projection.TERRAIN_MATCHING));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/taiga/zombie/streets"), new ResourceLocation("village/taiga/terminators"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/taiga/zombie/streets/corner_01", immutableList3), 2), new Pair(new LegacySinglePoolElement("village/taiga/zombie/streets/corner_02", immutableList3), 2), new Pair(new LegacySinglePoolElement("village/taiga/zombie/streets/corner_03", immutableList3), 2), new Pair(new LegacySinglePoolElement("village/taiga/zombie/streets/straight_01", immutableList3), 4), new Pair(new LegacySinglePoolElement("village/taiga/zombie/streets/straight_02", immutableList3), 4), new Pair(new LegacySinglePoolElement("village/taiga/zombie/streets/straight_03", immutableList3), 4), new Pair(new LegacySinglePoolElement("village/taiga/zombie/streets/straight_04", immutableList3), 7), new Pair(new LegacySinglePoolElement("village/taiga/zombie/streets/straight_05", immutableList3), 7), new Pair(new LegacySinglePoolElement("village/taiga/zombie/streets/straight_06", immutableList3), 4), new Pair(new LegacySinglePoolElement("village/taiga/zombie/streets/crossroad_01", immutableList3), 1), new Pair(new LegacySinglePoolElement("village/taiga/zombie/streets/crossroad_02", immutableList3), 1), new Pair(new LegacySinglePoolElement("village/taiga/zombie/streets/crossroad_03", immutableList3), 2), new Pair(new LegacySinglePoolElement("village/taiga/zombie/streets/crossroad_04", immutableList3), 2), new Pair(new LegacySinglePoolElement("village/taiga/zombie/streets/crossroad_05", immutableList3), 2), new Pair(new LegacySinglePoolElement("village/taiga/zombie/streets/crossroad_06", immutableList3), 2), new Pair(new LegacySinglePoolElement("village/taiga/zombie/streets/turn_01", immutableList3), 3)), StructureTemplatePool.Projection.TERRAIN_MATCHING));
        final ImmutableList<StructureProcessor> immutableList4 = ImmutableList.of(new RuleProcessor(ImmutableList.<ProcessorRule>of(new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.3f), AlwaysTrueTest.INSTANCE, Blocks.PUMPKIN_STEM.defaultBlockState()), new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.2f), AlwaysTrueTest.INSTANCE, Blocks.POTATOES.defaultBlockState()))));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/taiga/houses"), new ResourceLocation("village/taiga/terminators"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_small_house_1", immutableList2), 4), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_small_house_2", immutableList2), 4), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_small_house_3", immutableList2), 4), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_small_house_4", immutableList2), 4), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_small_house_5", immutableList2), 4), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_medium_house_1", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_medium_house_2", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_medium_house_3", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_medium_house_4", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_butcher_shop_1", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_tool_smith_1", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_fletcher_house_1", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_shepherds_house_1", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_armorer_house_1", immutableList2), 1), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_armorer_2", immutableList2), 1), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_fisher_cottage_1", immutableList2), 3), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_tannery_1", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_cartographer_house_1", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_library_1", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_masons_house_1", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_weaponsmith_1", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_weaponsmith_2", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_temple_1", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_large_farm_1", immutableList4), 6), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_large_farm_2", immutableList4), 6), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_small_farm_1", immutableList2), 1), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_animal_pen_1", immutableList2), 2), Pair.of(EmptyPoolElement.INSTANCE, 6)), StructureTemplatePool.Projection.RIGID));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/taiga/zombie/houses"), new ResourceLocation("village/taiga/terminators"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/taiga/zombie/houses/taiga_small_house_1", immutableList1), 4), new Pair(new LegacySinglePoolElement("village/taiga/zombie/houses/taiga_small_house_2", immutableList1), 4), new Pair(new LegacySinglePoolElement("village/taiga/zombie/houses/taiga_small_house_3", immutableList1), 4), new Pair(new LegacySinglePoolElement("village/taiga/zombie/houses/taiga_small_house_4", immutableList1), 4), new Pair(new LegacySinglePoolElement("village/taiga/zombie/houses/taiga_small_house_5", immutableList1), 4), new Pair(new LegacySinglePoolElement("village/taiga/zombie/houses/taiga_medium_house_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/taiga/zombie/houses/taiga_medium_house_2", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/taiga/zombie/houses/taiga_medium_house_3", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/taiga/zombie/houses/taiga_medium_house_4", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_butcher_shop_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/taiga/zombie/houses/taiga_tool_smith_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_fletcher_house_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/taiga/zombie/houses/taiga_shepherds_house_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_armorer_house_1", immutableList1), 1), new Pair(new LegacySinglePoolElement("village/taiga/zombie/houses/taiga_fisher_cottage_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_tannery_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/taiga/zombie/houses/taiga_cartographer_house_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/taiga/zombie/houses/taiga_library_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_masons_house_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_weaponsmith_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/taiga/zombie/houses/taiga_weaponsmith_2", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/taiga/zombie/houses/taiga_temple_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_large_farm_1", immutableList1), 6), new Pair(new LegacySinglePoolElement("village/taiga/zombie/houses/taiga_large_farm_2", immutableList1), 6), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_small_farm_1", immutableList1), 1), new Pair(new LegacySinglePoolElement("village/taiga/houses/taiga_animal_pen_1", immutableList1), 2), Pair.of(EmptyPoolElement.INSTANCE, 6)), StructureTemplatePool.Projection.RIGID));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/taiga/terminators"), new ResourceLocation("empty"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/plains/terminators/terminator_01", immutableList3), 1), new Pair(new LegacySinglePoolElement("village/plains/terminators/terminator_02", immutableList3), 1), new Pair(new LegacySinglePoolElement("village/plains/terminators/terminator_03", immutableList3), 1), new Pair(new LegacySinglePoolElement("village/plains/terminators/terminator_04", immutableList3), 1)), StructureTemplatePool.Projection.TERRAIN_MATCHING));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/taiga/decor"), new ResourceLocation("empty"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/taiga/taiga_lamp_post_1"), 10), new Pair(new LegacySinglePoolElement("village/taiga/taiga_decoration_1"), 4), new Pair(new LegacySinglePoolElement("village/taiga/taiga_decoration_2"), 1), new Pair(new LegacySinglePoolElement("village/taiga/taiga_decoration_3"), 1), new Pair(new LegacySinglePoolElement("village/taiga/taiga_decoration_4"), 1), new Pair(new LegacySinglePoolElement("village/taiga/taiga_decoration_5"), 2), new Pair(new LegacySinglePoolElement("village/taiga/taiga_decoration_6"), 1), new Pair(new FeaturePoolElement(Feature.TREE.configured(BiomeDefaultFeatures.SPRUCE_TREE_CONFIG)), 4), new Pair(new FeaturePoolElement(Feature.TREE.configured(BiomeDefaultFeatures.PINE_TREE_CONFIG)), 4), new Pair(new FeaturePoolElement(Feature.BLOCK_PILE.configured(BiomeDefaultFeatures.PUMPKIN_PILE_CONFIG)), 2), new Pair(new FeaturePoolElement(Feature.RANDOM_PATCH.configured(BiomeDefaultFeatures.TAIGA_GRASS_CONFIG)), 4), new Pair(new FeaturePoolElement(Feature.RANDOM_PATCH.configured(BiomeDefaultFeatures.SWEET_BERRY_BUSH_CONFIG)), 1), Pair.of(EmptyPoolElement.INSTANCE, 4)), StructureTemplatePool.Projection.RIGID));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/taiga/zombie/decor"), new ResourceLocation("empty"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/taiga/taiga_decoration_1"), 4), new Pair(new LegacySinglePoolElement("village/taiga/taiga_decoration_2"), 1), new Pair(new LegacySinglePoolElement("village/taiga/taiga_decoration_3"), 1), new Pair(new LegacySinglePoolElement("village/taiga/taiga_decoration_4"), 1), new Pair(new FeaturePoolElement(Feature.TREE.configured(BiomeDefaultFeatures.SPRUCE_TREE_CONFIG)), 4), new Pair(new FeaturePoolElement(Feature.TREE.configured(BiomeDefaultFeatures.PINE_TREE_CONFIG)), 4), new Pair(new FeaturePoolElement(Feature.BLOCK_PILE.configured(BiomeDefaultFeatures.PUMPKIN_PILE_CONFIG)), 2), new Pair(new FeaturePoolElement(Feature.RANDOM_PATCH.configured(BiomeDefaultFeatures.TAIGA_GRASS_CONFIG)), 4), new Pair(new FeaturePoolElement(Feature.RANDOM_PATCH.configured(BiomeDefaultFeatures.SWEET_BERRY_BUSH_CONFIG)), 1), Pair.of(EmptyPoolElement.INSTANCE, 4)), StructureTemplatePool.Projection.RIGID));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/taiga/villagers"), new ResourceLocation("empty"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/taiga/villagers/nitwit"), 1), new Pair(new LegacySinglePoolElement("village/taiga/villagers/baby"), 1), new Pair(new LegacySinglePoolElement("village/taiga/villagers/unemployed"), 10)), StructureTemplatePool.Projection.RIGID));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/taiga/zombie/villagers"), new ResourceLocation("empty"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/taiga/zombie/villagers/nitwit"), 1), new Pair(new LegacySinglePoolElement("village/taiga/zombie/villagers/unemployed"), 10)), StructureTemplatePool.Projection.RIGID));
    }
}
