| 1 | package net.minecraft.data.worldgen;
|
| 2 |
|
| 3 | import com.google.common.collect.ImmutableList;
|
| 4 | import com.mojang.datafixers.util.Pair;
|
| 5 | import net.minecraft.core.Holder;
|
| 6 | import net.minecraft.core.HolderGetter;
|
| 7 | import net.minecraft.core.registries.Registries;
|
| 8 | import net.minecraft.data.worldgen.placement.VillagePlacements;
|
| 9 | import net.minecraft.resources.ResourceKey;
|
| 10 | import net.minecraft.world.level.levelgen.placement.PlacedFeature;
|
| 11 | import net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement;
|
| 12 | import net.minecraft.world.level.levelgen.structure.pools.StructureTemplatePool;
|
| 13 | import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorList;
|
| 14 |
|
| 15 | public class PlainVillagePools {
|
| 16 | public static final ResourceKey<StructureTemplatePool> START = Pools.createKey("village/plains/town_centers");
|
| 17 | private static final ResourceKey<StructureTemplatePool> TERMINATORS_KEY = Pools.createKey("village/plains/terminators");
|
| 18 |
|
| 19 | public static void bootstrap(final BootstrapContext<StructureTemplatePool> context) {
|
| 20 | HolderGetter<PlacedFeature> placedFeatures = context.lookup(Registries.PLACED_FEATURE);
|
| 21 | Holder<PlacedFeature> oakVillage = placedFeatures.getOrThrow(VillagePlacements.OAK_VILLAGE);
|
| 22 | Holder<PlacedFeature> flowerPlainVillage = placedFeatures.getOrThrow(VillagePlacements.FLOWER_PLAIN_VILLAGE);
|
| 23 | Holder<PlacedFeature> pileHayVillage = placedFeatures.getOrThrow(VillagePlacements.PILE_HAY_VILLAGE);
|
| 24 | HolderGetter<StructureProcessorList> processorLists = context.lookup(Registries.PROCESSOR_LIST);
|
| 25 | Holder<StructureProcessorList> mossify10Percent = processorLists.getOrThrow(ProcessorLists.MOSSIFY_10_PERCENT);
|
| 26 | Holder<StructureProcessorList> mossify20Percent = processorLists.getOrThrow(ProcessorLists.MOSSIFY_20_PERCENT);
|
| 27 | Holder<StructureProcessorList> mossify70Percent = processorLists.getOrThrow(ProcessorLists.MOSSIFY_70_PERCENT);
|
| 28 | Holder<StructureProcessorList> zombiePlains = processorLists.getOrThrow(ProcessorLists.ZOMBIE_PLAINS);
|
| 29 | Holder<StructureProcessorList> streetPlains = processorLists.getOrThrow(ProcessorLists.STREET_PLAINS);
|
| 30 | Holder<StructureProcessorList> farmPlains = processorLists.getOrThrow(ProcessorLists.FARM_PLAINS);
|
| 31 | HolderGetter<StructureTemplatePool> pools = context.lookup(Registries.TEMPLATE_POOL);
|
| 32 | Holder<StructureTemplatePool> empty = pools.getOrThrow(Pools.EMPTY);
|
| 33 | Holder<StructureTemplatePool> terminators = pools.getOrThrow(TERMINATORS_KEY);
|
| 34 | context.register(
|
| 35 | START,
|
| 36 | new StructureTemplatePool(
|
| 37 | empty,
|
| 38 | ImmutableList.of(
|
| 39 | Pair.of(StructurePoolElement.legacy("village/plains/town_centers/plains_fountain_01", mossify20Percent), 50),
|
| 40 | Pair.of(StructurePoolElement.legacy("village/plains/town_centers/plains_meeting_point_1", mossify20Percent), 50),
|
| 41 | Pair.of(StructurePoolElement.legacy("village/plains/town_centers/plains_meeting_point_2"), 50),
|
| 42 | Pair.of(StructurePoolElement.legacy("village/plains/town_centers/plains_meeting_point_3", mossify70Percent), 50),
|
| 43 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/town_centers/plains_fountain_01", zombiePlains), 1),
|
| 44 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/town_centers/plains_meeting_point_1", zombiePlains), 1),
|
| 45 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/town_centers/plains_meeting_point_2", zombiePlains), 1),
|
| 46 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/town_centers/plains_meeting_point_3", zombiePlains), 1)
|
| 47 | ),
|
| 48 | StructureTemplatePool.Projection.RIGID
|
| 49 | )
|
| 50 | );
|
| 51 | Pools.register(
|
| 52 | context,
|
| 53 | "village/plains/streets",
|
| 54 | new StructureTemplatePool(
|
| 55 | terminators,
|
| 56 | ImmutableList.of(
|
| 57 | Pair.of(StructurePoolElement.legacy("village/plains/streets/corner_01", streetPlains), 2),
|
| 58 | Pair.of(StructurePoolElement.legacy("village/plains/streets/corner_02", streetPlains), 2),
|
| 59 | Pair.of(StructurePoolElement.legacy("village/plains/streets/corner_03", streetPlains), 2),
|
| 60 | Pair.of(StructurePoolElement.legacy("village/plains/streets/straight_01", streetPlains), 4),
|
| 61 | Pair.of(StructurePoolElement.legacy("village/plains/streets/straight_02", streetPlains), 4),
|
| 62 | Pair.of(StructurePoolElement.legacy("village/plains/streets/straight_03", streetPlains), 7),
|
| 63 | Pair.of(StructurePoolElement.legacy("village/plains/streets/straight_04", streetPlains), 7),
|
| 64 | Pair.of(StructurePoolElement.legacy("village/plains/streets/straight_05", streetPlains), 3),
|
| 65 | Pair.of(StructurePoolElement.legacy("village/plains/streets/straight_06", streetPlains), 4),
|
| 66 | Pair.of(StructurePoolElement.legacy("village/plains/streets/crossroad_01", streetPlains), 2),
|
| 67 | Pair.of(StructurePoolElement.legacy("village/plains/streets/crossroad_02", streetPlains), 1),
|
| 68 | Pair.of(StructurePoolElement.legacy("village/plains/streets/crossroad_03", streetPlains), 2),
|
| 69 | Pair.of(StructurePoolElement.legacy("village/plains/streets/crossroad_04", streetPlains), 2),
|
| 70 | Pair.of(StructurePoolElement.legacy("village/plains/streets/crossroad_05", streetPlains), 2),
|
| 71 | Pair.of(StructurePoolElement.legacy("village/plains/streets/crossroad_06", streetPlains), 2),
|
| 72 | Pair.of(StructurePoolElement.legacy("village/plains/streets/turn_01", streetPlains), 3)
|
| 73 | ),
|
| 74 | StructureTemplatePool.Projection.TERRAIN_MATCHING
|
| 75 | )
|
| 76 | );
|
| 77 | Pools.register(
|
| 78 | context,
|
| 79 | "village/plains/zombie/streets",
|
| 80 | new StructureTemplatePool(
|
| 81 | terminators,
|
| 82 | ImmutableList.of(
|
| 83 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/streets/corner_01", streetPlains), 2),
|
| 84 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/streets/corner_02", streetPlains), 2),
|
| 85 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/streets/corner_03", streetPlains), 2),
|
| 86 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/streets/straight_01", streetPlains), 4),
|
| 87 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/streets/straight_02", streetPlains), 4),
|
| 88 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/streets/straight_03", streetPlains), 7),
|
| 89 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/streets/straight_04", streetPlains), 7),
|
| 90 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/streets/straight_05", streetPlains), 3),
|
| 91 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/streets/straight_06", streetPlains), 4),
|
| 92 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/streets/crossroad_01", streetPlains), 2),
|
| 93 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/streets/crossroad_02", streetPlains), 1),
|
| 94 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/streets/crossroad_03", streetPlains), 2),
|
| 95 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/streets/crossroad_04", streetPlains), 2),
|
| 96 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/streets/crossroad_05", streetPlains), 2),
|
| 97 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/streets/crossroad_06", streetPlains), 2),
|
| 98 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/streets/turn_01", streetPlains), 3)
|
| 99 | ),
|
| 100 | StructureTemplatePool.Projection.TERRAIN_MATCHING
|
| 101 | )
|
| 102 | );
|
| 103 | Pools.register(
|
| 104 | context,
|
| 105 | "village/plains/houses",
|
| 106 | new StructureTemplatePool(
|
| 107 | terminators,
|
| 108 | ImmutableList.of(
|
| 109 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_small_house_1", mossify10Percent), 2),
|
| 110 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_small_house_2", mossify10Percent), 2),
|
| 111 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_small_house_3", mossify10Percent), 2),
|
| 112 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_small_house_4", mossify10Percent), 2),
|
| 113 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_small_house_5", mossify10Percent), 2),
|
| 114 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_small_house_6", mossify10Percent), 1),
|
| 115 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_small_house_7", mossify10Percent), 2),
|
| 116 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_small_house_8", mossify10Percent), 3),
|
| 117 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_medium_house_1", mossify10Percent), 2),
|
| 118 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_medium_house_2", mossify10Percent), 2),
|
| 119 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_big_house_1", mossify10Percent), 2),
|
| 120 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_butcher_shop_1", mossify10Percent), 2),
|
| 121 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_butcher_shop_2", mossify10Percent), 2),
|
| 122 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_tool_smith_1", mossify10Percent), 2),
|
| 123 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_fletcher_house_1", mossify10Percent), 2),
|
| 124 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_shepherds_house_1"), 2),
|
| 125 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_armorer_house_1", mossify10Percent), 2),
|
| 126 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_fisher_cottage_1", mossify10Percent), 2),
|
| 127 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_tannery_1", mossify10Percent), 2),
|
| 128 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_cartographer_1", mossify10Percent), 1),
|
| 129 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_library_1", mossify10Percent), 5),
|
| 130 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_library_2", mossify10Percent), 1),
|
| 131 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_masons_house_1", mossify10Percent), 2),
|
| 132 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_weaponsmith_1", mossify10Percent), 2),
|
| 133 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_temple_3", mossify10Percent), 2),
|
| 134 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_temple_4", mossify10Percent), 2),
|
| 135 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_stable_1", mossify10Percent), 2),
|
| 136 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_stable_2"), 2),
|
| 137 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_large_farm_1", farmPlains), 4),
|
| 138 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_small_farm_1", farmPlains), 4),
|
| 139 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_animal_pen_1"), 1),
|
| 140 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_animal_pen_2"), 1),
|
| 141 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_animal_pen_3"), 5),
|
| 142 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_accessory_1"), 1),
|
| 143 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_meeting_point_4", mossify70Percent), 3),
|
| 144 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_meeting_point_5"), 1),
|
| 145 | Pair.of(StructurePoolElement.empty(), 10)
|
| 146 | ),
|
| 147 | StructureTemplatePool.Projection.RIGID
|
| 148 | )
|
| 149 | );
|
| 150 | Pools.register(
|
| 151 | context,
|
| 152 | "village/plains/zombie/houses",
|
| 153 | new StructureTemplatePool(
|
| 154 | terminators,
|
| 155 | ImmutableList.of(
|
| 156 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_small_house_1", zombiePlains), 2),
|
| 157 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_small_house_2", zombiePlains), 2),
|
| 158 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_small_house_3", zombiePlains), 2),
|
| 159 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_small_house_4", zombiePlains), 2),
|
| 160 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_small_house_5", zombiePlains), 2),
|
| 161 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_small_house_6", zombiePlains), 1),
|
| 162 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_small_house_7", zombiePlains), 2),
|
| 163 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_small_house_8", zombiePlains), 2),
|
| 164 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_medium_house_1", zombiePlains), 2),
|
| 165 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_medium_house_2", zombiePlains), 2),
|
| 166 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_big_house_1", zombiePlains), 2),
|
| 167 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_butcher_shop_1", zombiePlains), 2),
|
| 168 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_butcher_shop_2", zombiePlains), 2),
|
| 169 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_tool_smith_1", zombiePlains), 2),
|
| 170 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_fletcher_house_1", zombiePlains), 2),
|
| 171 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_shepherds_house_1", zombiePlains), 2),
|
| 172 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_armorer_house_1", zombiePlains), 2),
|
| 173 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_fisher_cottage_1", zombiePlains), 2),
|
| 174 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_tannery_1", zombiePlains), 2),
|
| 175 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_cartographer_1", zombiePlains), 1),
|
| 176 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_library_1", zombiePlains), 3),
|
| 177 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_library_2", zombiePlains), 1),
|
| 178 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_masons_house_1", zombiePlains), 2),
|
| 179 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_weaponsmith_1", zombiePlains), 2),
|
| 180 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_temple_3", zombiePlains), 2),
|
| 181 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_temple_4", zombiePlains), 2),
|
| 182 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_stable_1", zombiePlains), 2),
|
| 183 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_stable_2", zombiePlains), 2),
|
| 184 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_large_farm_1", zombiePlains), 4),
|
| 185 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_small_farm_1", zombiePlains), 4),
|
| 186 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_animal_pen_1", zombiePlains), 1),
|
| 187 | Pair.of(StructurePoolElement.legacy("village/plains/houses/plains_animal_pen_2", zombiePlains), 1),
|
| 188 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_animal_pen_3", zombiePlains), 5),
|
| 189 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_meeting_point_4", zombiePlains), 3),
|
| 190 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/houses/plains_meeting_point_5", zombiePlains), 1),
|
| 191 | Pair.of(StructurePoolElement.empty(), 10)
|
| 192 | ),
|
| 193 | StructureTemplatePool.Projection.RIGID
|
| 194 | )
|
| 195 | );
|
| 196 | context.register(
|
| 197 | TERMINATORS_KEY,
|
| 198 | new StructureTemplatePool(
|
| 199 | empty,
|
| 200 | ImmutableList.of(
|
| 201 | Pair.of(StructurePoolElement.legacy("village/plains/terminators/terminator_01", streetPlains), 1),
|
| 202 | Pair.of(StructurePoolElement.legacy("village/plains/terminators/terminator_02", streetPlains), 1),
|
| 203 | Pair.of(StructurePoolElement.legacy("village/plains/terminators/terminator_03", streetPlains), 1),
|
| 204 | Pair.of(StructurePoolElement.legacy("village/plains/terminators/terminator_04", streetPlains), 1)
|
| 205 | ),
|
| 206 | StructureTemplatePool.Projection.TERRAIN_MATCHING
|
| 207 | )
|
| 208 | );
|
| 209 | Pools.register(
|
| 210 | context,
|
| 211 | "village/plains/trees",
|
| 212 | new StructureTemplatePool(empty, ImmutableList.of(Pair.of(StructurePoolElement.feature(oakVillage), 1)), StructureTemplatePool.Projection.RIGID)
|
| 213 | );
|
| 214 | Pools.register(
|
| 215 | context,
|
| 216 | "village/plains/decor",
|
| 217 | new StructureTemplatePool(
|
| 218 | empty,
|
| 219 | ImmutableList.of(
|
| 220 | Pair.of(StructurePoolElement.legacy("village/plains/plains_lamp_1"), 2),
|
| 221 | Pair.of(StructurePoolElement.feature(oakVillage), 1),
|
| 222 | Pair.of(StructurePoolElement.feature(flowerPlainVillage), 1),
|
| 223 | Pair.of(StructurePoolElement.feature(pileHayVillage), 1),
|
| 224 | Pair.of(StructurePoolElement.empty(), 2)
|
| 225 | ),
|
| 226 | StructureTemplatePool.Projection.RIGID
|
| 227 | )
|
| 228 | );
|
| 229 | Pools.register(
|
| 230 | context,
|
| 231 | "village/plains/zombie/decor",
|
| 232 | new StructureTemplatePool(
|
| 233 | empty,
|
| 234 | ImmutableList.of(
|
| 235 | Pair.of(StructurePoolElement.legacy("village/plains/plains_lamp_1", zombiePlains), 1),
|
| 236 | Pair.of(StructurePoolElement.feature(oakVillage), 1),
|
| 237 | Pair.of(StructurePoolElement.feature(flowerPlainVillage), 1),
|
| 238 | Pair.of(StructurePoolElement.feature(pileHayVillage), 1),
|
| 239 | Pair.of(StructurePoolElement.empty(), 2)
|
| 240 | ),
|
| 241 | StructureTemplatePool.Projection.RIGID
|
| 242 | )
|
| 243 | );
|
| 244 | Pools.register(
|
| 245 | context,
|
| 246 | "village/plains/villagers",
|
| 247 | new StructureTemplatePool(
|
| 248 | empty,
|
| 249 | ImmutableList.of(
|
| 250 | Pair.of(StructurePoolElement.legacy("village/plains/villagers/nitwit"), 1),
|
| 251 | Pair.of(StructurePoolElement.legacy("village/plains/villagers/baby"), 1),
|
| 252 | Pair.of(StructurePoolElement.legacy("village/plains/villagers/unemployed"), 10)
|
| 253 | ),
|
| 254 | StructureTemplatePool.Projection.RIGID
|
| 255 | )
|
| 256 | );
|
| 257 | Pools.register(
|
| 258 | context,
|
| 259 | "village/plains/zombie/villagers",
|
| 260 | new StructureTemplatePool(
|
| 261 | empty,
|
| 262 | ImmutableList.of(
|
| 263 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/villagers/nitwit"), 1),
|
| 264 | Pair.of(StructurePoolElement.legacy("village/plains/zombie/villagers/unemployed"), 10)
|
| 265 | ),
|
| 266 | StructureTemplatePool.Projection.RIGID
|
| 267 | )
|
| 268 | );
|
| 269 | Pools.register(
|
| 270 | context,
|
| 271 | "village/common/animals",
|
| 272 | new StructureTemplatePool(
|
| 273 | empty,
|
| 274 | ImmutableList.of(
|
| 275 | Pair.of(StructurePoolElement.legacy("village/common/animals/cows_1"), 7),
|
| 276 | Pair.of(StructurePoolElement.legacy("village/common/animals/pigs_1"), 7),
|
| 277 | Pair.of(StructurePoolElement.legacy("village/common/animals/horses_1"), 1),
|
| 278 | Pair.of(StructurePoolElement.legacy("village/common/animals/horses_2"), 1),
|
| 279 | Pair.of(StructurePoolElement.legacy("village/common/animals/horses_3"), 1),
|
| 280 | Pair.of(StructurePoolElement.legacy("village/common/animals/horses_4"), 1),
|
| 281 | Pair.of(StructurePoolElement.legacy("village/common/animals/horses_5"), 1),
|
| 282 | Pair.of(StructurePoolElement.legacy("village/common/animals/sheep_1"), 1),
|
| 283 | Pair.of(StructurePoolElement.legacy("village/common/animals/sheep_2"), 1),
|
| 284 | Pair.of(StructurePoolElement.empty(), 5)
|
| 285 | ),
|
| 286 | StructureTemplatePool.Projection.RIGID
|
| 287 | )
|
| 288 | );
|
| 289 | Pools.register(
|
| 290 | context,
|
| 291 | "village/common/sheep",
|
| 292 | new StructureTemplatePool(
|
| 293 | empty,
|
| 294 | ImmutableList.of(
|
| 295 | Pair.of(StructurePoolElement.legacy("village/common/animals/sheep_1"), 1), Pair.of(StructurePoolElement.legacy("village/common/animals/sheep_2"), 1)
|
| 296 | ),
|
| 297 | StructureTemplatePool.Projection.RIGID
|
| 298 | )
|
| 299 | );
|
| 300 | Pools.register(
|
| 301 | context,
|
| 302 | "village/common/cats",
|
| 303 | new StructureTemplatePool(
|
| 304 | empty,
|
| 305 | ImmutableList.of(
|
| 306 | Pair.of(StructurePoolElement.legacy("village/common/animals/cat_black"), 1),
|
| 307 | Pair.of(StructurePoolElement.legacy("village/common/animals/cat_british"), 1),
|
| 308 | Pair.of(StructurePoolElement.legacy("village/common/animals/cat_calico"), 1),
|
| 309 | Pair.of(StructurePoolElement.legacy("village/common/animals/cat_persian"), 1),
|
| 310 | Pair.of(StructurePoolElement.legacy("village/common/animals/cat_ragdoll"), 1),
|
| 311 | Pair.of(StructurePoolElement.legacy("village/common/animals/cat_red"), 1),
|
| 312 | Pair.of(StructurePoolElement.legacy("village/common/animals/cat_siamese"), 1),
|
| 313 | Pair.of(StructurePoolElement.legacy("village/common/animals/cat_tabby"), 1),
|
| 314 | Pair.of(StructurePoolElement.legacy("village/common/animals/cat_white"), 1),
|
| 315 | Pair.of(StructurePoolElement.legacy("village/common/animals/cat_jellie"), 1),
|
| 316 | Pair.of(StructurePoolElement.empty(), 3)
|
| 317 | ),
|
| 318 | StructureTemplatePool.Projection.RIGID
|
| 319 | )
|
| 320 | );
|
| 321 | Pools.register(
|
| 322 | context,
|
| 323 | "village/common/butcher_animals",
|
| 324 | new StructureTemplatePool(
|
| 325 | empty,
|
| 326 | ImmutableList.of(
|
| 327 | Pair.of(StructurePoolElement.legacy("village/common/animals/cows_1"), 3),
|
| 328 | Pair.of(StructurePoolElement.legacy("village/common/animals/pigs_1"), 3),
|
| 329 | Pair.of(StructurePoolElement.legacy("village/common/animals/sheep_1"), 1),
|
| 330 | Pair.of(StructurePoolElement.legacy("village/common/animals/sheep_2"), 1)
|
| 331 | ),
|
| 332 | StructureTemplatePool.Projection.RIGID
|
| 333 | )
|
| 334 | );
|
| 335 | Pools.register(
|
| 336 | context,
|
| 337 | "village/common/iron_golem",
|
| 338 | new StructureTemplatePool(
|
| 339 | empty, ImmutableList.of(Pair.of(StructurePoolElement.legacy("village/common/iron_golem"), 1)), StructureTemplatePool.Projection.RIGID
|
| 340 | )
|
| 341 | );
|
| 342 | Pools.register(
|
| 343 | context,
|
| 344 | "village/common/well_bottoms",
|
| 345 | new StructureTemplatePool(
|
| 346 | empty, ImmutableList.of(Pair.of(StructurePoolElement.legacy("village/common/well_bottom"), 1)), StructureTemplatePool.Projection.RIGID
|
| 347 | )
|
| 348 | );
|
| 349 | }
|
| 350 | }
|
| 351 |
|