Spaces:
Build error
Build error
File size: 12,036 Bytes
d46f4a3 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 |
package net.minecraft.data.worldgen;
import com.mojang.datafixers.util.Pair;
import java.util.List;
import net.minecraft.core.Holder;
import net.minecraft.core.HolderGetter;
import net.minecraft.core.registries.Registries;
import net.minecraft.resources.ResourceKey;
import net.minecraft.world.level.levelgen.structure.pools.StructurePoolElement;
import net.minecraft.world.level.levelgen.structure.pools.StructureTemplatePool;
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorList;
public class TrailRuinsStructurePools {
public static final ResourceKey<StructureTemplatePool> START = Pools.createKey("trail_ruins/tower");
public static void bootstrap(BootstrapContext<StructureTemplatePool> p_331263_) {
HolderGetter<StructureTemplatePool> holdergetter = p_331263_.lookup(Registries.TEMPLATE_POOL);
Holder<StructureTemplatePool> holder = holdergetter.getOrThrow(Pools.EMPTY);
HolderGetter<StructureProcessorList> holdergetter1 = p_331263_.lookup(Registries.PROCESSOR_LIST);
Holder<StructureProcessorList> holder1 = holdergetter1.getOrThrow(ProcessorLists.TRAIL_RUINS_HOUSES_ARCHAEOLOGY);
Holder<StructureProcessorList> holder2 = holdergetter1.getOrThrow(ProcessorLists.TRAIL_RUINS_ROADS_ARCHAEOLOGY);
Holder<StructureProcessorList> holder3 = holdergetter1.getOrThrow(ProcessorLists.TRAIL_RUINS_TOWER_TOP_ARCHAEOLOGY);
p_331263_.register(
START,
new StructureTemplatePool(
holder,
List.of(
Pair.of(StructurePoolElement.single("trail_ruins/tower/tower_1", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/tower_2", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/tower_3", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/tower_4", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/tower_5", holder1), 1)
),
StructureTemplatePool.Projection.RIGID
)
);
Pools.register(
p_331263_,
"trail_ruins/tower/tower_top",
new StructureTemplatePool(
holder,
List.of(
Pair.of(StructurePoolElement.single("trail_ruins/tower/tower_top_1", holder3), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/tower_top_2", holder3), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/tower_top_3", holder3), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/tower_top_4", holder3), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/tower_top_5", holder3), 1)
),
StructureTemplatePool.Projection.RIGID
)
);
Pools.register(
p_331263_,
"trail_ruins/tower/additions",
new StructureTemplatePool(
holder,
List.of(
Pair.of(StructurePoolElement.single("trail_ruins/tower/hall_1", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/hall_2", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/hall_3", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/hall_4", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/hall_5", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/large_hall_1", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/large_hall_2", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/large_hall_3", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/large_hall_4", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/large_hall_5", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/one_room_1", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/one_room_2", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/one_room_3", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/one_room_4", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/one_room_5", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/platform_1", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/platform_2", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/platform_3", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/platform_4", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/platform_5", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/stable_1", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/stable_2", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/stable_3", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/stable_4", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/tower/stable_5", holder1), 1)
),
StructureTemplatePool.Projection.RIGID
)
);
Pools.register(
p_331263_,
"trail_ruins/roads",
new StructureTemplatePool(
holder,
List.of(
Pair.of(StructurePoolElement.single("trail_ruins/roads/long_road_end", holder2), 1),
Pair.of(StructurePoolElement.single("trail_ruins/roads/road_end_1", holder2), 1),
Pair.of(StructurePoolElement.single("trail_ruins/roads/road_section_1", holder2), 1),
Pair.of(StructurePoolElement.single("trail_ruins/roads/road_section_2", holder2), 1),
Pair.of(StructurePoolElement.single("trail_ruins/roads/road_section_3", holder2), 1),
Pair.of(StructurePoolElement.single("trail_ruins/roads/road_section_4", holder2), 1),
Pair.of(StructurePoolElement.single("trail_ruins/roads/road_spacer_1", holder2), 1)
),
StructureTemplatePool.Projection.RIGID
)
);
Pools.register(
p_331263_,
"trail_ruins/buildings",
new StructureTemplatePool(
holder,
List.of(
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_hall_1", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_hall_2", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_hall_3", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_hall_4", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_hall_5", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/large_room_1", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/large_room_2", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/large_room_3", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/large_room_4", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/large_room_5", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/one_room_1", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/one_room_2", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/one_room_3", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/one_room_4", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/one_room_5", holder1), 1)
),
StructureTemplatePool.Projection.RIGID
)
);
Pools.register(
p_331263_,
"trail_ruins/buildings/grouped",
new StructureTemplatePool(
holder,
List.of(
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_full_1", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_full_2", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_full_3", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_full_4", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_full_5", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_lower_1", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_lower_2", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_lower_3", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_lower_4", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_lower_5", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_upper_1", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_upper_2", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_upper_3", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_upper_4", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_upper_5", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_room_1", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_room_2", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_room_3", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_room_4", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/buildings/group_room_5", holder1), 1)
),
StructureTemplatePool.Projection.RIGID
)
);
Pools.register(
p_331263_,
"trail_ruins/decor",
new StructureTemplatePool(
holder,
List.of(
Pair.of(StructurePoolElement.single("trail_ruins/decor/decor_1", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/decor/decor_2", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/decor/decor_3", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/decor/decor_4", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/decor/decor_5", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/decor/decor_6", holder1), 1),
Pair.of(StructurePoolElement.single("trail_ruins/decor/decor_7", holder1), 1)
),
StructureTemplatePool.Projection.RIGID
)
);
}
} |