| 1 | package net.minecraft.data.worldgen;
|
| 2 |
|
| 3 | import com.google.common.collect.ImmutableList;
|
| 4 | import com.mojang.datafixers.util.Pair;
|
| 5 | import java.util.List;
|
| 6 | import net.minecraft.core.Holder;
|
| 7 | import net.minecraft.core.HolderGetter;
|
| 8 | import net.minecraft.core.registries.Registries;
|
| 9 | import net.minecraft.resources.ResourceKey;
|
| 10 | import net.minecraft.util.random.WeightedList;
|
| 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.pools.alias.PoolAliasBinding;
|
| 14 | import net.minecraft.world.level.levelgen.structure.pools.alias.PoolAliasBindings;
|
| 15 | import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorList;
|
| 16 |
|
| 17 | public class TrialChambersStructurePools {
|
| 18 | public static final ResourceKey<StructureTemplatePool> START = Pools.createKey("trial_chambers/chamber/end");
|
| 19 | public static final ResourceKey<StructureTemplatePool> HALLWAY_FALLBACK = Pools.createKey("trial_chambers/hallway/fallback");
|
| 20 | public static final List<PoolAliasBinding> ALIAS_BINDINGS = ImmutableList.<PoolAliasBinding>builder()
|
| 21 | .add(
|
| 22 | PoolAliasBinding.randomGroup(
|
| 23 | WeightedList.<List<PoolAliasBinding>>builder()
|
| 24 | .add(
|
| 25 | List.of(
|
| 26 | PoolAliasBinding.direct(spawner("contents/ranged"), spawner("ranged/skeleton")),
|
| 27 | PoolAliasBinding.direct(spawner("contents/slow_ranged"), spawner("slow_ranged/skeleton"))
|
| 28 | )
|
| 29 | )
|
| 30 | .add(
|
| 31 | List.of(
|
| 32 | PoolAliasBinding.direct(spawner("contents/ranged"), spawner("ranged/stray")),
|
| 33 | PoolAliasBinding.direct(spawner("contents/slow_ranged"), spawner("slow_ranged/stray"))
|
| 34 | )
|
| 35 | )
|
| 36 | .add(
|
| 37 | List.of(
|
| 38 | PoolAliasBinding.direct(spawner("contents/ranged"), spawner("ranged/poison_skeleton")),
|
| 39 | PoolAliasBinding.direct(spawner("contents/slow_ranged"), spawner("slow_ranged/poison_skeleton"))
|
| 40 | )
|
| 41 | )
|
| 42 | .build()
|
| 43 | )
|
| 44 | )
|
| 45 | .add(
|
| 46 | PoolAliasBinding.random(
|
| 47 | spawner("contents/melee"), WeightedList.<String>builder().add(spawner("melee/zombie")).add(spawner("melee/husk")).add(spawner("melee/spider")).build()
|
| 48 | )
|
| 49 | )
|
| 50 | .add(
|
| 51 | PoolAliasBinding.random(
|
| 52 | spawner("contents/small_melee"),
|
| 53 | WeightedList.<String>builder()
|
| 54 | .add(spawner("small_melee/slime"))
|
| 55 | .add(spawner("small_melee/cave_spider"))
|
| 56 | .add(spawner("small_melee/silverfish"))
|
| 57 | .add(spawner("small_melee/baby_zombie"))
|
| 58 | .build()
|
| 59 | )
|
| 60 | )
|
| 61 | .build();
|
| 62 |
|
| 63 | public static String spawner(final String alias) {
|
| 64 | return "trial_chambers/spawner/" + alias;
|
| 65 | }
|
| 66 |
|
| 67 | public static void bootstrap(final BootstrapContext<StructureTemplatePool> context) {
|
| 68 | HolderGetter<StructureTemplatePool> pools = context.lookup(Registries.TEMPLATE_POOL);
|
| 69 | Holder<StructureTemplatePool> empty = pools.getOrThrow(Pools.EMPTY);
|
| 70 | Holder<StructureTemplatePool> hallwayFallback = pools.getOrThrow(HALLWAY_FALLBACK);
|
| 71 | HolderGetter<StructureProcessorList> processorLists = context.lookup(Registries.PROCESSOR_LIST);
|
| 72 | Holder<StructureProcessorList> trialChambersCopperBulbDegradation = processorLists.getOrThrow(ProcessorLists.TRIAL_CHAMBERS_COPPER_BULB_DEGRADATION);
|
| 73 | context.register(
|
| 74 | START,
|
| 75 | new StructureTemplatePool(
|
| 76 | empty,
|
| 77 | List.of(
|
| 78 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/end_1", trialChambersCopperBulbDegradation), 1),
|
| 79 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/end_2", trialChambersCopperBulbDegradation), 1)
|
| 80 | ),
|
| 81 | StructureTemplatePool.Projection.RIGID
|
| 82 | )
|
| 83 | );
|
| 84 | Pools.register(
|
| 85 | context,
|
| 86 | "trial_chambers/chamber/entrance_cap",
|
| 87 | new StructureTemplatePool(
|
| 88 | empty,
|
| 89 | List.of(Pair.of(StructurePoolElement.single("trial_chambers/chamber/entrance_cap", trialChambersCopperBulbDegradation), 1)),
|
| 90 | StructureTemplatePool.Projection.RIGID
|
| 91 | )
|
| 92 | );
|
| 93 | Pools.register(
|
| 94 | context,
|
| 95 | "trial_chambers/chambers/end",
|
| 96 | new StructureTemplatePool(
|
| 97 | hallwayFallback,
|
| 98 | List.of(
|
| 99 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/chamber_1", trialChambersCopperBulbDegradation), 1),
|
| 100 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly", trialChambersCopperBulbDegradation), 1),
|
| 101 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/eruption", trialChambersCopperBulbDegradation), 1),
|
| 102 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted", trialChambersCopperBulbDegradation), 1)
|
| 103 | ),
|
| 104 | StructureTemplatePool.Projection.RIGID
|
| 105 | )
|
| 106 | );
|
| 107 | Pools.register(
|
| 108 | context,
|
| 109 | "trial_chambers/corridor",
|
| 110 | new StructureTemplatePool(
|
| 111 | empty,
|
| 112 | List.of(
|
| 113 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/second_plate"), 1),
|
| 114 | Pair.of(StructurePoolElement.single("trial_chambers/intersection/intersection_1", trialChambersCopperBulbDegradation), 1),
|
| 115 | Pair.of(StructurePoolElement.single("trial_chambers/intersection/intersection_2", trialChambersCopperBulbDegradation), 1),
|
| 116 | Pair.of(StructurePoolElement.single("trial_chambers/intersection/intersection_3", trialChambersCopperBulbDegradation), 1),
|
| 117 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/first_plate"), 1),
|
| 118 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/atrium_1", trialChambersCopperBulbDegradation), 1),
|
| 119 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/entrance_1", trialChambersCopperBulbDegradation), 1),
|
| 120 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/entrance_2", trialChambersCopperBulbDegradation), 1),
|
| 121 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/entrance_3", trialChambersCopperBulbDegradation), 1)
|
| 122 | ),
|
| 123 | StructureTemplatePool.Projection.RIGID
|
| 124 | )
|
| 125 | );
|
| 126 | Pools.register(
|
| 127 | context,
|
| 128 | "trial_chambers/chamber/addon",
|
| 129 | new StructureTemplatePool(
|
| 130 | empty,
|
| 131 | List.of(
|
| 132 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/addon/full_stacked_walkway"), 1),
|
| 133 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/addon/full_stacked_walkway_2"), 1),
|
| 134 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/addon/full_corner_column"), 1),
|
| 135 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/addon/grate_bridge"), 1),
|
| 136 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/addon/hanging_platform"), 1),
|
| 137 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/addon/short_grate_platform"), 1),
|
| 138 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/addon/short_platform"), 1),
|
| 139 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/addon/lower_staircase_down"), 1),
|
| 140 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/addon/walkway_with_bridge_1"), 1),
|
| 141 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/addon/c1_breeze"), 1)
|
| 142 | ),
|
| 143 | StructureTemplatePool.Projection.RIGID
|
| 144 | )
|
| 145 | );
|
| 146 | Pools.register(
|
| 147 | context,
|
| 148 | "trial_chambers/chamber/assembly",
|
| 149 | new StructureTemplatePool(
|
| 150 | empty,
|
| 151 | List.of(
|
| 152 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/full_column"), 2),
|
| 153 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/cover_1"), 2),
|
| 154 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/cover_2"), 2),
|
| 155 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/cover_3"), 2),
|
| 156 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/cover_4"), 2),
|
| 157 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/cover_5"), 2),
|
| 158 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/cover_6"), 2),
|
| 159 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/cover_7"), 5),
|
| 160 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/platform_1"), 2),
|
| 161 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/spawner_1"), 1),
|
| 162 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/hanging_1"), 2),
|
| 163 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/hanging_2"), 1),
|
| 164 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/hanging_3"), 2),
|
| 165 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/hanging_4"), 2),
|
| 166 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/hanging_5"), 4),
|
| 167 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/left_staircase_1"), 1),
|
| 168 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/left_staircase_2"), 1),
|
| 169 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/left_staircase_3"), 1),
|
| 170 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/right_staircase_1"), 1),
|
| 171 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/right_staircase_2"), 1),
|
| 172 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly/right_staircase_3"), 1)
|
| 173 | ),
|
| 174 | StructureTemplatePool.Projection.RIGID
|
| 175 | )
|
| 176 | );
|
| 177 | Pools.register(
|
| 178 | context,
|
| 179 | "trial_chambers/chamber/eruption",
|
| 180 | new StructureTemplatePool(
|
| 181 | empty,
|
| 182 | List.of(
|
| 183 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/eruption/center_1"), 1),
|
| 184 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/eruption/breeze_slice_1"), 1),
|
| 185 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/eruption/slice_1"), 1),
|
| 186 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/eruption/slice_2"), 1),
|
| 187 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/eruption/slice_3"), 1),
|
| 188 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/eruption/quadrant_1"), 1),
|
| 189 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/eruption/quadrant_2"), 1),
|
| 190 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/eruption/quadrant_3"), 1),
|
| 191 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/eruption/quadrant_4"), 1),
|
| 192 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/eruption/quadrant_5"), 1)
|
| 193 | ),
|
| 194 | StructureTemplatePool.Projection.RIGID
|
| 195 | )
|
| 196 | );
|
| 197 | Pools.register(
|
| 198 | context,
|
| 199 | "trial_chambers/chamber/slanted",
|
| 200 | new StructureTemplatePool(
|
| 201 | empty,
|
| 202 | List.of(
|
| 203 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted/center"), 1),
|
| 204 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted/hallway_1"), 1),
|
| 205 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted/hallway_2"), 1),
|
| 206 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted/hallway_3"), 1),
|
| 207 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted/quadrant_1"), 1),
|
| 208 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted/quadrant_2"), 1),
|
| 209 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted/quadrant_3"), 1),
|
| 210 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted/quadrant_4"), 1),
|
| 211 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted/ramp_1"), 1),
|
| 212 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted/ramp_2"), 1),
|
| 213 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted/ramp_3"), 1),
|
| 214 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted/ramp_4"), 1),
|
| 215 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted/ominous_upper_arm_1"), 1)
|
| 216 | ),
|
| 217 | StructureTemplatePool.Projection.RIGID
|
| 218 | )
|
| 219 | );
|
| 220 | Pools.register(
|
| 221 | context,
|
| 222 | "trial_chambers/chamber/pedestal",
|
| 223 | new StructureTemplatePool(
|
| 224 | empty,
|
| 225 | List.of(
|
| 226 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/pedestal/center_1"), 1),
|
| 227 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/pedestal/slice_1"), 1),
|
| 228 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/pedestal/slice_2"), 3),
|
| 229 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/pedestal/slice_3"), 3),
|
| 230 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/pedestal/slice_4"), 3),
|
| 231 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/pedestal/slice_5"), 3),
|
| 232 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/pedestal/ominous_slice_1"), 1),
|
| 233 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/pedestal/quadrant_1"), 1),
|
| 234 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/pedestal/quadrant_2"), 1),
|
| 235 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/pedestal/quadrant_3"), 1),
|
| 236 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted/quadrant_1"), 1),
|
| 237 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted/quadrant_2"), 1),
|
| 238 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted/quadrant_3"), 1),
|
| 239 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted/quadrant_4"), 1)
|
| 240 | ),
|
| 241 | StructureTemplatePool.Projection.RIGID
|
| 242 | )
|
| 243 | );
|
| 244 | Pools.register(
|
| 245 | context,
|
| 246 | "trial_chambers/corridor/slices",
|
| 247 | new StructureTemplatePool(
|
| 248 | empty,
|
| 249 | List.of(
|
| 250 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/straight_1", trialChambersCopperBulbDegradation), 1),
|
| 251 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/straight_2", trialChambersCopperBulbDegradation), 2),
|
| 252 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/straight_3", trialChambersCopperBulbDegradation), 2),
|
| 253 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/straight_4", trialChambersCopperBulbDegradation), 2),
|
| 254 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/straight_5", trialChambersCopperBulbDegradation), 2),
|
| 255 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/straight_6", trialChambersCopperBulbDegradation), 2),
|
| 256 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/straight_7", trialChambersCopperBulbDegradation), 1),
|
| 257 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/straight_8", trialChambersCopperBulbDegradation), 2)
|
| 258 | ),
|
| 259 | StructureTemplatePool.Projection.RIGID
|
| 260 | )
|
| 261 | );
|
| 262 | context.register(
|
| 263 | HALLWAY_FALLBACK,
|
| 264 | new StructureTemplatePool(
|
| 265 | empty,
|
| 266 | List.of(
|
| 267 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/rubble"), 1),
|
| 268 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/rubble_chamber"), 1),
|
| 269 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/rubble_thin"), 1),
|
| 270 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/rubble_chamber_thin"), 1)
|
| 271 | ),
|
| 272 | StructureTemplatePool.Projection.RIGID
|
| 273 | )
|
| 274 | );
|
| 275 | Pools.register(
|
| 276 | context,
|
| 277 | "trial_chambers/hallway",
|
| 278 | new StructureTemplatePool(
|
| 279 | hallwayFallback,
|
| 280 | List.of(
|
| 281 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/corridor_connector_1"), 1),
|
| 282 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/upper_hallway_connector", trialChambersCopperBulbDegradation), 1),
|
| 283 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/lower_hallway_connector", trialChambersCopperBulbDegradation), 1),
|
| 284 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/rubble"), 1),
|
| 285 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/chamber_1", trialChambersCopperBulbDegradation), 150),
|
| 286 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/chamber_2", trialChambersCopperBulbDegradation), 150),
|
| 287 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/chamber_4", trialChambersCopperBulbDegradation), 150),
|
| 288 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/chamber_8", trialChambersCopperBulbDegradation), 150),
|
| 289 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/assembly", trialChambersCopperBulbDegradation), 150),
|
| 290 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/eruption", trialChambersCopperBulbDegradation), 150),
|
| 291 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/slanted", trialChambersCopperBulbDegradation), 150),
|
| 292 | Pair.of(StructurePoolElement.single("trial_chambers/chamber/pedestal", trialChambersCopperBulbDegradation), 150),
|
| 293 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/rubble_chamber", trialChambersCopperBulbDegradation), 10),
|
| 294 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/rubble_chamber_thin", trialChambersCopperBulbDegradation), 1),
|
| 295 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/cache_1", trialChambersCopperBulbDegradation), 1),
|
| 296 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/left_corner", trialChambersCopperBulbDegradation), 1),
|
| 297 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/right_corner", trialChambersCopperBulbDegradation), 1),
|
| 298 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/corner_staircase", trialChambersCopperBulbDegradation), 1),
|
| 299 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/corner_staircase_down", trialChambersCopperBulbDegradation), 1),
|
| 300 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/long_straight_staircase", trialChambersCopperBulbDegradation), 1),
|
| 301 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/long_straight_staircase_down", trialChambersCopperBulbDegradation), 1),
|
| 302 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/straight", trialChambersCopperBulbDegradation), 1),
|
| 303 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/straight_staircase", trialChambersCopperBulbDegradation), 1),
|
| 304 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/straight_staircase_down", trialChambersCopperBulbDegradation), 1),
|
| 305 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/trapped_staircase", trialChambersCopperBulbDegradation), 1),
|
| 306 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/encounter_1", trialChambersCopperBulbDegradation), 1),
|
| 307 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/encounter_2", trialChambersCopperBulbDegradation), 1),
|
| 308 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/encounter_3", trialChambersCopperBulbDegradation), 1),
|
| 309 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/encounter_4", trialChambersCopperBulbDegradation), 1),
|
| 310 | Pair.of(StructurePoolElement.single("trial_chambers/hallway/encounter_5", trialChambersCopperBulbDegradation), 1)
|
| 311 | ),
|
| 312 | StructureTemplatePool.Projection.RIGID
|
| 313 | )
|
| 314 | );
|
| 315 | Pools.register(
|
| 316 | context,
|
| 317 | "trial_chambers/corridors/addon/lower",
|
| 318 | new StructureTemplatePool(
|
| 319 | empty,
|
| 320 | List.of(
|
| 321 | Pair.of(StructurePoolElement.empty(), 8),
|
| 322 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/addon/staircase"), 1),
|
| 323 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/addon/wall"), 1),
|
| 324 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/addon/ladder_to_middle"), 1),
|
| 325 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/addon/arrow_dispenser"), 1),
|
| 326 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/addon/bridge_lower"), 2)
|
| 327 | ),
|
| 328 | StructureTemplatePool.Projection.RIGID
|
| 329 | )
|
| 330 | );
|
| 331 | Pools.register(
|
| 332 | context,
|
| 333 | "trial_chambers/corridors/addon/middle",
|
| 334 | new StructureTemplatePool(
|
| 335 | empty,
|
| 336 | List.of(
|
| 337 | Pair.of(StructurePoolElement.empty(), 8),
|
| 338 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/addon/open_walkway"), 2),
|
| 339 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/addon/walled_walkway"), 1)
|
| 340 | ),
|
| 341 | StructureTemplatePool.Projection.RIGID
|
| 342 | )
|
| 343 | );
|
| 344 | Pools.register(
|
| 345 | context,
|
| 346 | "trial_chambers/corridors/addon/middle_upper",
|
| 347 | new StructureTemplatePool(
|
| 348 | empty,
|
| 349 | List.of(
|
| 350 | Pair.of(StructurePoolElement.empty(), 6),
|
| 351 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/addon/open_walkway_upper"), 2),
|
| 352 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/addon/chandelier_upper"), 1),
|
| 353 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/addon/decoration_upper"), 1),
|
| 354 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/addon/head_upper"), 1),
|
| 355 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/addon/reward_upper"), 1)
|
| 356 | ),
|
| 357 | StructureTemplatePool.Projection.RIGID
|
| 358 | )
|
| 359 | );
|
| 360 | Pools.register(
|
| 361 | context,
|
| 362 | "trial_chambers/atrium",
|
| 363 | new StructureTemplatePool(
|
| 364 | empty,
|
| 365 | List.of(
|
| 366 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/atrium/bogged_relief"), 1),
|
| 367 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/atrium/breeze_relief"), 1),
|
| 368 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/atrium/spiral_relief"), 1),
|
| 369 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/atrium/spider_relief"), 1),
|
| 370 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/atrium/grand_staircase_1"), 1),
|
| 371 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/atrium/grand_staircase_2"), 1),
|
| 372 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/atrium/grand_staircase_3"), 1)
|
| 373 | ),
|
| 374 | StructureTemplatePool.Projection.RIGID
|
| 375 | )
|
| 376 | );
|
| 377 | Pools.register(
|
| 378 | context,
|
| 379 | "trial_chambers/decor",
|
| 380 | new StructureTemplatePool(
|
| 381 | empty,
|
| 382 | List.of(
|
| 383 | Pair.of(StructurePoolElement.empty(), 22),
|
| 384 | Pair.of(StructurePoolElement.single("trial_chambers/decor/empty_pot"), 2),
|
| 385 | Pair.of(StructurePoolElement.single("trial_chambers/decor/dead_bush_pot"), 2),
|
| 386 | Pair.of(StructurePoolElement.single("trial_chambers/decor/undecorated_pot"), 10),
|
| 387 | Pair.of(StructurePoolElement.single("trial_chambers/decor/flow_pot"), 1),
|
| 388 | Pair.of(StructurePoolElement.single("trial_chambers/decor/guster_pot"), 1),
|
| 389 | Pair.of(StructurePoolElement.single("trial_chambers/decor/scrape_pot"), 1),
|
| 390 | Pair.of(StructurePoolElement.single("trial_chambers/decor/candle_1"), 1),
|
| 391 | Pair.of(StructurePoolElement.single("trial_chambers/decor/candle_2"), 1),
|
| 392 | Pair.of(StructurePoolElement.single("trial_chambers/decor/candle_3"), 1),
|
| 393 | Pair.of(StructurePoolElement.single("trial_chambers/decor/candle_4"), 1),
|
| 394 | Pair.of(StructurePoolElement.single("trial_chambers/decor/barrel"), 2)
|
| 395 | ),
|
| 396 | StructureTemplatePool.Projection.RIGID
|
| 397 | )
|
| 398 | );
|
| 399 | Pools.register(
|
| 400 | context,
|
| 401 | "trial_chambers/decor/disposal",
|
| 402 | new StructureTemplatePool(empty, List.of(Pair.of(StructurePoolElement.single("trial_chambers/decor/disposal"), 1)), StructureTemplatePool.Projection.RIGID)
|
| 403 | );
|
| 404 | Pools.register(
|
| 405 | context,
|
| 406 | "trial_chambers/decor/bed",
|
| 407 | new StructureTemplatePool(
|
| 408 | empty,
|
| 409 | List.of(
|
| 410 | Pair.of(StructurePoolElement.single("trial_chambers/decor/white_bed"), 3),
|
| 411 | Pair.of(StructurePoolElement.single("trial_chambers/decor/light_gray_bed"), 3),
|
| 412 | Pair.of(StructurePoolElement.single("trial_chambers/decor/gray_bed"), 3),
|
| 413 | Pair.of(StructurePoolElement.single("trial_chambers/decor/black_bed"), 3),
|
| 414 | Pair.of(StructurePoolElement.single("trial_chambers/decor/brown_bed"), 3),
|
| 415 | Pair.of(StructurePoolElement.single("trial_chambers/decor/red_bed"), 3),
|
| 416 | Pair.of(StructurePoolElement.single("trial_chambers/decor/orange_bed"), 3),
|
| 417 | Pair.of(StructurePoolElement.single("trial_chambers/decor/yellow_bed"), 3),
|
| 418 | Pair.of(StructurePoolElement.single("trial_chambers/decor/lime_bed"), 3),
|
| 419 | Pair.of(StructurePoolElement.single("trial_chambers/decor/green_bed"), 3),
|
| 420 | Pair.of(StructurePoolElement.single("trial_chambers/decor/cyan_bed"), 3),
|
| 421 | Pair.of(StructurePoolElement.single("trial_chambers/decor/light_blue_bed"), 3),
|
| 422 | Pair.of(StructurePoolElement.single("trial_chambers/decor/blue_bed"), 3),
|
| 423 | Pair.of(StructurePoolElement.single("trial_chambers/decor/purple_bed"), 3),
|
| 424 | Pair.of(StructurePoolElement.single("trial_chambers/decor/magenta_bed"), 3),
|
| 425 | Pair.of(StructurePoolElement.single("trial_chambers/decor/pink_bed"), 1)
|
| 426 | ),
|
| 427 | StructureTemplatePool.Projection.RIGID
|
| 428 | )
|
| 429 | );
|
| 430 | Pools.register(
|
| 431 | context,
|
| 432 | "trial_chambers/entrance",
|
| 433 | new StructureTemplatePool(
|
| 434 | empty,
|
| 435 | List.of(
|
| 436 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/addon/display_1"), 1),
|
| 437 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/addon/display_2"), 1),
|
| 438 | Pair.of(StructurePoolElement.single("trial_chambers/corridor/addon/display_3"), 1)
|
| 439 | ),
|
| 440 | StructureTemplatePool.Projection.RIGID
|
| 441 | )
|
| 442 | );
|
| 443 | Pools.register(
|
| 444 | context,
|
| 445 | "trial_chambers/decor/chamber",
|
| 446 | new StructureTemplatePool(
|
| 447 | empty,
|
| 448 | List.of(Pair.of(StructurePoolElement.empty(), 4), Pair.of(StructurePoolElement.single("trial_chambers/decor/undecorated_pot"), 1)),
|
| 449 | StructureTemplatePool.Projection.RIGID
|
| 450 | )
|
| 451 | );
|
| 452 | Pools.register(
|
| 453 | context,
|
| 454 | "trial_chambers/reward/all",
|
| 455 | new StructureTemplatePool(empty, List.of(Pair.of(StructurePoolElement.single("trial_chambers/reward/vault"), 1)), StructureTemplatePool.Projection.RIGID)
|
| 456 | );
|
| 457 | Pools.register(
|
| 458 | context,
|
| 459 | "trial_chambers/reward/ominous_vault",
|
| 460 | new StructureTemplatePool(
|
| 461 | empty, List.of(Pair.of(StructurePoolElement.single("trial_chambers/reward/ominous_vault"), 1)), StructureTemplatePool.Projection.RIGID
|
| 462 | )
|
| 463 | );
|
| 464 | Pools.register(
|
| 465 | context,
|
| 466 | "trial_chambers/reward/contents/default",
|
| 467 | new StructureTemplatePool(empty, List.of(Pair.of(StructurePoolElement.single("trial_chambers/reward/vault"), 1)), StructureTemplatePool.Projection.RIGID)
|
| 468 | );
|
| 469 | Pools.register(
|
| 470 | context,
|
| 471 | "trial_chambers/chests/supply",
|
| 472 | new StructureTemplatePool(
|
| 473 | empty, List.of(Pair.of(StructurePoolElement.single("trial_chambers/chests/connectors/supply"), 1)), StructureTemplatePool.Projection.RIGID
|
| 474 | )
|
| 475 | );
|
| 476 | Pools.register(
|
| 477 | context,
|
| 478 | "trial_chambers/chests/contents/supply",
|
| 479 | new StructureTemplatePool(empty, List.of(Pair.of(StructurePoolElement.single("trial_chambers/chests/supply"), 1)), StructureTemplatePool.Projection.RIGID)
|
| 480 | );
|
| 481 | Pools.register(
|
| 482 | context,
|
| 483 | "trial_chambers/spawner/ranged",
|
| 484 | new StructureTemplatePool(
|
| 485 | empty, List.of(Pair.of(StructurePoolElement.single("trial_chambers/spawner/connectors/ranged"), 1)), StructureTemplatePool.Projection.RIGID
|
| 486 | )
|
| 487 | );
|
| 488 | Pools.register(
|
| 489 | context,
|
| 490 | "trial_chambers/spawner/slow_ranged",
|
| 491 | new StructureTemplatePool(
|
| 492 | empty, List.of(Pair.of(StructurePoolElement.single("trial_chambers/spawner/connectors/slow_ranged"), 1)), StructureTemplatePool.Projection.RIGID
|
| 493 | )
|
| 494 | );
|
| 495 | Pools.register(
|
| 496 | context,
|
| 497 | "trial_chambers/spawner/melee",
|
| 498 | new StructureTemplatePool(
|
| 499 | empty, List.of(Pair.of(StructurePoolElement.single("trial_chambers/spawner/connectors/melee"), 1)), StructureTemplatePool.Projection.RIGID
|
| 500 | )
|
| 501 | );
|
| 502 | Pools.register(
|
| 503 | context,
|
| 504 | "trial_chambers/spawner/small_melee",
|
| 505 | new StructureTemplatePool(
|
| 506 | empty, List.of(Pair.of(StructurePoolElement.single("trial_chambers/spawner/connectors/small_melee"), 1)), StructureTemplatePool.Projection.RIGID
|
| 507 | )
|
| 508 | );
|
| 509 | Pools.register(
|
| 510 | context,
|
| 511 | "trial_chambers/spawner/breeze",
|
| 512 | new StructureTemplatePool(
|
| 513 | empty, List.of(Pair.of(StructurePoolElement.single("trial_chambers/spawner/connectors/breeze"), 1)), StructureTemplatePool.Projection.RIGID
|
| 514 | )
|
| 515 | );
|
| 516 | Pools.register(
|
| 517 | context,
|
| 518 | "trial_chambers/spawner/all",
|
| 519 | new StructureTemplatePool(
|
| 520 | empty,
|
| 521 | List.of(
|
| 522 | Pair.of(StructurePoolElement.single("trial_chambers/spawner/connectors/ranged"), 1),
|
| 523 | Pair.of(StructurePoolElement.single("trial_chambers/spawner/connectors/melee"), 1),
|
| 524 | Pair.of(StructurePoolElement.single("trial_chambers/spawner/connectors/small_melee"), 1)
|
| 525 | ),
|
| 526 | StructureTemplatePool.Projection.RIGID
|
| 527 | )
|
| 528 | );
|
| 529 | Pools.register(
|
| 530 | context,
|
| 531 | "trial_chambers/spawner/contents/breeze",
|
| 532 | new StructureTemplatePool(
|
| 533 | empty, List.of(Pair.of(StructurePoolElement.single("trial_chambers/spawner/breeze/breeze"), 1)), StructureTemplatePool.Projection.RIGID
|
| 534 | )
|
| 535 | );
|
| 536 | Pools.register(
|
| 537 | context,
|
| 538 | "trial_chambers/dispensers/chamber",
|
| 539 | new StructureTemplatePool(
|
| 540 | empty,
|
| 541 | List.of(
|
| 542 | Pair.of(StructurePoolElement.empty(), 1),
|
| 543 | Pair.of(StructurePoolElement.single("trial_chambers/dispensers/chamber"), 1),
|
| 544 | Pair.of(StructurePoolElement.single("trial_chambers/dispensers/wall_dispenser"), 1),
|
| 545 | Pair.of(StructurePoolElement.single("trial_chambers/dispensers/floor_dispenser"), 1)
|
| 546 | ),
|
| 547 | StructureTemplatePool.Projection.RIGID
|
| 548 | )
|
| 549 | );
|
| 550 | PoolAliasBindings.registerTargetsAsPools(context, empty, ALIAS_BINDINGS);
|
| 551 | }
|
| 552 | }
|
| 553 |
|