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.structure.templatesystem.StructureProcessor;
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.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.state.properties.Property;
import net.minecraft.world.level.block.IronBarsBlock;
import net.minecraft.world.level.block.state.BlockState;
import net.minecraft.world.level.levelgen.structure.templatesystem.RandomBlockMatchTest;
import net.minecraft.world.level.levelgen.structure.templatesystem.BlockMatchTest;
import net.minecraft.world.level.levelgen.structure.templatesystem.RuleTest;
import net.minecraft.world.level.levelgen.structure.templatesystem.ProcessorRule;
import net.minecraft.world.level.block.Blocks;
import net.minecraft.world.level.levelgen.structure.templatesystem.AlwaysTrueTest;
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;

public class SnowyVillagePools {
    public static void bootstrap() {
    }
    
    static {
        final ImmutableList<StructureProcessor> immutableList1 = ImmutableList.of(new RuleProcessor(ImmutableList.<ProcessorRule>of(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.LANTERN), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()), new ProcessorRule(new RandomBlockMatchTest(Blocks.SPRUCE_PLANKS, 0.2f), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()), new ProcessorRule(new RandomBlockMatchTest(Blocks.SPRUCE_SLAB, 0.4f), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()), new ProcessorRule(new RandomBlockMatchTest(Blocks.STRIPPED_SPRUCE_LOG, 0.05f), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()), new ProcessorRule(new RandomBlockMatchTest(Blocks.STRIPPED_SPRUCE_WOOD, 0.05f), 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.1f), AlwaysTrueTest.INSTANCE, Blocks.CARROTS.defaultBlockState()), new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.8f), AlwaysTrueTest.INSTANCE, Blocks.POTATOES.defaultBlockState()))));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/snowy/town_centers"), new ResourceLocation("empty"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/snowy/town_centers/snowy_meeting_point_1"), 100), new Pair(new LegacySinglePoolElement("village/snowy/town_centers/snowy_meeting_point_2"), 50), new Pair(new LegacySinglePoolElement("village/snowy/town_centers/snowy_meeting_point_3"), 150), new Pair(new LegacySinglePoolElement("village/snowy/zombie/town_centers/snowy_meeting_point_1"), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/town_centers/snowy_meeting_point_2"), 1), new Pair(new LegacySinglePoolElement("village/snowy/zombie/town_centers/snowy_meeting_point_3"), 3)), StructureTemplatePool.Projection.RIGID));
        final ImmutableList<StructureProcessor> immutableList2 = 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/snowy/streets"), new ResourceLocation("village/snowy/terminators"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/snowy/streets/corner_01", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/snowy/streets/corner_02", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/snowy/streets/corner_03", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/snowy/streets/square_01", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/snowy/streets/straight_01", immutableList2), 4), new Pair(new LegacySinglePoolElement("village/snowy/streets/straight_02", immutableList2), 4), new Pair(new LegacySinglePoolElement("village/snowy/streets/straight_03", immutableList2), 4), new Pair(new LegacySinglePoolElement("village/snowy/streets/straight_04", immutableList2), 7), new Pair(new LegacySinglePoolElement("village/snowy/streets/straight_06", immutableList2), 4), new Pair(new LegacySinglePoolElement("village/snowy/streets/straight_08", immutableList2), 4), new Pair(new LegacySinglePoolElement("village/snowy/streets/crossroad_02", immutableList2), 1), new Pair(new LegacySinglePoolElement("village/snowy/streets/crossroad_03", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/snowy/streets/crossroad_04", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/snowy/streets/crossroad_05", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/snowy/streets/crossroad_06", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/snowy/streets/turn_01", immutableList2), 3)), StructureTemplatePool.Projection.TERRAIN_MATCHING));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/snowy/zombie/streets"), new ResourceLocation("village/snowy/terminators"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/snowy/zombie/streets/corner_01", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/streets/corner_02", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/streets/corner_03", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/streets/square_01", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/streets/straight_01", immutableList2), 4), new Pair(new LegacySinglePoolElement("village/snowy/zombie/streets/straight_02", immutableList2), 4), new Pair(new LegacySinglePoolElement("village/snowy/zombie/streets/straight_03", immutableList2), 4), new Pair(new LegacySinglePoolElement("village/snowy/zombie/streets/straight_04", immutableList2), 7), new Pair(new LegacySinglePoolElement("village/snowy/zombie/streets/straight_06", immutableList2), 4), new Pair(new LegacySinglePoolElement("village/snowy/zombie/streets/straight_08", immutableList2), 4), new Pair(new LegacySinglePoolElement("village/snowy/zombie/streets/crossroad_02", immutableList2), 1), new Pair(new LegacySinglePoolElement("village/snowy/zombie/streets/crossroad_03", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/streets/crossroad_04", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/streets/crossroad_05", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/streets/crossroad_06", immutableList2), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/streets/turn_01", immutableList2), 3)), StructureTemplatePool.Projection.TERRAIN_MATCHING));
        final ImmutableList<StructureProcessor> immutableList3 = ImmutableList.of(new RuleProcessor(ImmutableList.<ProcessorRule>of(new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.1f), AlwaysTrueTest.INSTANCE, Blocks.CARROTS.defaultBlockState()), new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.8f), AlwaysTrueTest.INSTANCE, Blocks.POTATOES.defaultBlockState()))));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/snowy/houses"), new ResourceLocation("village/snowy/terminators"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_small_house_1"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_small_house_2"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_small_house_3"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_small_house_4"), 3), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_small_house_5"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_small_house_6"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_small_house_7"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_small_house_8"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_medium_house_1"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_medium_house_2"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_medium_house_3"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_butchers_shop_1"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_butchers_shop_2"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_tool_smith_1"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_fletcher_house_1"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_shepherds_house_1"), 3), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_armorer_house_1"), 1), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_armorer_house_2"), 1), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_fisher_cottage"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_tannery_1"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_cartographer_house_1"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_library_1"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_masons_house_1"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_masons_house_2"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_weapon_smith_1"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_temple_1"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_farm_1", immutableList3), 3), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_farm_2", immutableList3), 3), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_animal_pen_1"), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_animal_pen_2"), 2), Pair.of(EmptyPoolElement.INSTANCE, 6)), StructureTemplatePool.Projection.RIGID));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/snowy/zombie/houses"), new ResourceLocation("village/snowy/terminators"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/snowy/zombie/houses/snowy_small_house_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/houses/snowy_small_house_2", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/houses/snowy_small_house_3", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/houses/snowy_small_house_4", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/houses/snowy_small_house_5", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/houses/snowy_small_house_6", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/houses/snowy_small_house_7", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/houses/snowy_small_house_8", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/houses/snowy_medium_house_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/houses/snowy_medium_house_2", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/zombie/houses/snowy_medium_house_3", immutableList1), 1), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_butchers_shop_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_butchers_shop_2", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_tool_smith_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_fletcher_house_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_shepherds_house_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_armorer_house_1", immutableList1), 1), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_armorer_house_2", immutableList1), 1), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_fisher_cottage", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_tannery_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_cartographer_house_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_library_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_masons_house_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_masons_house_2", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_weapon_smith_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_temple_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_farm_1", immutableList1), 3), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_farm_2", immutableList1), 3), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_animal_pen_1", immutableList1), 2), new Pair(new LegacySinglePoolElement("village/snowy/houses/snowy_animal_pen_2", immutableList1), 2), Pair.of(EmptyPoolElement.INSTANCE, 6)), StructureTemplatePool.Projection.RIGID));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/snowy/terminators"), new ResourceLocation("empty"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/plains/terminators/terminator_01", immutableList2), 1), new Pair(new LegacySinglePoolElement("village/plains/terminators/terminator_02", immutableList2), 1), new Pair(new LegacySinglePoolElement("village/plains/terminators/terminator_03", immutableList2), 1), new Pair(new LegacySinglePoolElement("village/plains/terminators/terminator_04", immutableList2), 1)), StructureTemplatePool.Projection.TERRAIN_MATCHING));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/snowy/trees"), new ResourceLocation("empty"), ImmutableList.of(new Pair(new FeaturePoolElement(Feature.TREE.configured(BiomeDefaultFeatures.SPRUCE_TREE_CONFIG)), 1)), StructureTemplatePool.Projection.RIGID));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/snowy/decor"), new ResourceLocation("empty"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/snowy/snowy_lamp_post_01"), 4), new Pair(new LegacySinglePoolElement("village/snowy/snowy_lamp_post_02"), 4), new Pair(new LegacySinglePoolElement("village/snowy/snowy_lamp_post_03"), 1), new Pair(new FeaturePoolElement(Feature.TREE.configured(BiomeDefaultFeatures.SPRUCE_TREE_CONFIG)), 4), new Pair(new FeaturePoolElement(Feature.BLOCK_PILE.configured(BiomeDefaultFeatures.SNOW_PILE_CONFIG)), 4), new Pair(new FeaturePoolElement(Feature.BLOCK_PILE.configured(BiomeDefaultFeatures.ICE_PILE_CONFIG)), 1), Pair.of(EmptyPoolElement.INSTANCE, 9)), StructureTemplatePool.Projection.RIGID));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/snowy/zombie/decor"), new ResourceLocation("empty"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/snowy/snowy_lamp_post_01", immutableList1), 1), new Pair(new LegacySinglePoolElement("village/snowy/snowy_lamp_post_02", immutableList1), 1), new Pair(new LegacySinglePoolElement("village/snowy/snowy_lamp_post_03", immutableList1), 1), new Pair(new FeaturePoolElement(Feature.TREE.configured(BiomeDefaultFeatures.SPRUCE_TREE_CONFIG)), 4), new Pair(new FeaturePoolElement(Feature.BLOCK_PILE.configured(BiomeDefaultFeatures.SNOW_PILE_CONFIG)), 4), new Pair(new FeaturePoolElement(Feature.BLOCK_PILE.configured(BiomeDefaultFeatures.ICE_PILE_CONFIG)), 4), Pair.of(EmptyPoolElement.INSTANCE, 7)), StructureTemplatePool.Projection.RIGID));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/snowy/villagers"), new ResourceLocation("empty"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/snowy/villagers/nitwit"), 1), new Pair(new LegacySinglePoolElement("village/snowy/villagers/baby"), 1), new Pair(new LegacySinglePoolElement("village/snowy/villagers/unemployed"), 10)), StructureTemplatePool.Projection.RIGID));
        JigsawPlacement.POOLS.register(new StructureTemplatePool(new ResourceLocation("village/snowy/zombie/villagers"), new ResourceLocation("empty"), ImmutableList.of(new Pair(new LegacySinglePoolElement("village/snowy/zombie/villagers/nitwit"), 1), new Pair(new LegacySinglePoolElement("village/snowy/zombie/villagers/unemployed"), 10)), StructureTemplatePool.Projection.RIGID));
    }
}
