ProcessorLists .java

net.minecraft.data.worldgen.ProcessorLists (class, 746 lines): members: TRIAL_CHAMBERS_COPPER_BULB_DEGRADATION, TRAIL_RUINS_TOWER_TOP_ARCHAEOLOGY, ROOF.

net.minecraft.data.worldgenclass746 linescommon36.4 KB

API Surface (1)

void bootstrap(final BootstrapContext<StructureProcessorList> context)

Fields & Constants (41)

EMPTY
ZOMBIE_PLAINS
ZOMBIE_SAVANNA
ZOMBIE_SNOWY
ZOMBIE_TAIGA
ZOMBIE_DESERT
MOSSIFY_10_PERCENT
MOSSIFY_20_PERCENT
MOSSIFY_70_PERCENT
STREET_PLAINS
STREET_SAVANNA
STREET_SNOWY_OR_TAIGA
FARM_PLAINS
FARM_SAVANNA
FARM_SNOWY
FARM_TAIGA
FARM_DESERT
OUTPOST_ROT
BOTTOM_RAMPART
TREASURE_ROOMS
HOUSING
SIDE_WALL_DEGRADATION
STABLE_DEGRADATION
BASTION_GENERIC_DEGRADATION
RAMPART_DEGRADATION
ENTRANCE_REPLACEMENT
BRIDGE
ROOF
HIGH_WALL
HIGH_RAMPART
FOSSIL_ROT
FOSSIL_COAL
FOSSIL_DIAMONDS
ANCIENT_CITY_START_DEGRADATION
ANCIENT_CITY_GENERIC_DEGRADATION
ANCIENT_CITY_WALLS_DEGRADATION
TRAIL_RUINS_HOUSES_ARCHAEOLOGY
TRAIL_RUINS_ROADS_ARCHAEOLOGY
TRAIL_RUINS_TOWER_TOP_ARCHAEOLOGY
TRIAL_CHAMBERS_COPPER_BULB_DEGRADATION
id

String literals (40)

"empty"
"zombie_plains"
"zombie_savanna"
"zombie_snowy"
"zombie_taiga"
"zombie_desert"
"mossify_10_percent"
"mossify_20_percent"
"mossify_70_percent"
"street_plains"
"street_savanna"
"street_snowy_or_taiga"
"farm_plains"
"farm_savanna"
"farm_snowy"
"farm_taiga"
"farm_desert"
"outpost_rot"
"bottom_rampart"
"treasure_rooms"
"housing"
"side_wall_degradation"
"stable_degradation"
"bastion_generic_degradation"

Full Source

ProcessorLists.java746 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.data.worldgen;
2
3
import com.google.common.collect.ImmutableList;
4
import java.util.List;
5
import net.minecraft.core.Direction;
6
import net.minecraft.core.HolderGetter;
7
import net.minecraft.core.registries.Registries;
8
import net.minecraft.resources.Identifier;
9
import net.minecraft.resources.ResourceKey;
10
import net.minecraft.tags.BlockTags;
11
import net.minecraft.util.valueproviders.ConstantInt;
12
import net.minecraft.world.level.block.Block;
13
import net.minecraft.world.level.block.Blocks;
14
import net.minecraft.world.level.block.CampfireBlock;
15
import net.minecraft.world.level.block.CopperBulbBlock;
16
import net.minecraft.world.level.block.IronBarsBlock;
17
import net.minecraft.world.level.levelgen.structure.templatesystem.AlwaysTrueTest;
18
import net.minecraft.world.level.levelgen.structure.templatesystem.AxisAlignedLinearPosTest;
19
import net.minecraft.world.level.levelgen.structure.templatesystem.BlockMatchTest;
20
import net.minecraft.world.level.levelgen.structure.templatesystem.BlockRotProcessor;
21
import net.minecraft.world.level.levelgen.structure.templatesystem.BlockStateMatchTest;
22
import net.minecraft.world.level.levelgen.structure.templatesystem.CappedProcessor;
23
import net.minecraft.world.level.levelgen.structure.templatesystem.PosAlwaysTrueTest;
24
import net.minecraft.world.level.levelgen.structure.templatesystem.ProcessorRule;
25
import net.minecraft.world.level.levelgen.structure.templatesystem.ProtectedBlockProcessor;
26
import net.minecraft.world.level.levelgen.structure.templatesystem.RandomBlockMatchTest;
27
import net.minecraft.world.level.levelgen.structure.templatesystem.RuleProcessor;
28
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor;
29
import net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessorList;
30
import net.minecraft.world.level.levelgen.structure.templatesystem.TagMatchTest;
31
import net.minecraft.world.level.levelgen.structure.templatesystem.rule.blockentity.AppendLoot;
32
import net.minecraft.world.level.storage.loot.BuiltInLootTables;
33
import net.minecraft.world.level.storage.loot.LootTable;
34
35
/**
36
 * Access widened by fabric-transitive-access-wideners-v1 to accessible
37
 */
38
public class ProcessorLists {
39
	/**
40
	 * Access widened by fabric-transitive-access-wideners-v1 to accessible
41
	 */
42
	public static final ResourceKey<StructureProcessorList> EMPTY = createKey("empty");
43
	public static final ResourceKey<StructureProcessorList> ZOMBIE_PLAINS = createKey("zombie_plains");
44
	public static final ResourceKey<StructureProcessorList> ZOMBIE_SAVANNA = createKey("zombie_savanna");
45
	public static final ResourceKey<StructureProcessorList> ZOMBIE_SNOWY = createKey("zombie_snowy");
46
	public static final ResourceKey<StructureProcessorList> ZOMBIE_TAIGA = createKey("zombie_taiga");
47
	public static final ResourceKey<StructureProcessorList> ZOMBIE_DESERT = createKey("zombie_desert");
48
	public static final ResourceKey<StructureProcessorList> MOSSIFY_10_PERCENT = createKey("mossify_10_percent");
49
	public static final ResourceKey<StructureProcessorList> MOSSIFY_20_PERCENT = createKey("mossify_20_percent");
50
	public static final ResourceKey<StructureProcessorList> MOSSIFY_70_PERCENT = createKey("mossify_70_percent");
51
	public static final ResourceKey<StructureProcessorList> STREET_PLAINS = createKey("street_plains");
52
	public static final ResourceKey<StructureProcessorList> STREET_SAVANNA = createKey("street_savanna");
53
	public static final ResourceKey<StructureProcessorList> STREET_SNOWY_OR_TAIGA = createKey("street_snowy_or_taiga");
54
	public static final ResourceKey<StructureProcessorList> FARM_PLAINS = createKey("farm_plains");
55
	public static final ResourceKey<StructureProcessorList> FARM_SAVANNA = createKey("farm_savanna");
56
	public static final ResourceKey<StructureProcessorList> FARM_SNOWY = createKey("farm_snowy");
57
	public static final ResourceKey<StructureProcessorList> FARM_TAIGA = createKey("farm_taiga");
58
	public static final ResourceKey<StructureProcessorList> FARM_DESERT = createKey("farm_desert");
59
	public static final ResourceKey<StructureProcessorList> OUTPOST_ROT = createKey("outpost_rot");
60
	public static final ResourceKey<StructureProcessorList> BOTTOM_RAMPART = createKey("bottom_rampart");
61
	public static final ResourceKey<StructureProcessorList> TREASURE_ROOMS = createKey("treasure_rooms");
62
	public static final ResourceKey<StructureProcessorList> HOUSING = createKey("housing");
63
	public static final ResourceKey<StructureProcessorList> SIDE_WALL_DEGRADATION = createKey("side_wall_degradation");
64
	public static final ResourceKey<StructureProcessorList> STABLE_DEGRADATION = createKey("stable_degradation");
65
	public static final ResourceKey<StructureProcessorList> BASTION_GENERIC_DEGRADATION = createKey("bastion_generic_degradation");
66
	public static final ResourceKey<StructureProcessorList> RAMPART_DEGRADATION = createKey("rampart_degradation");
67
	public static final ResourceKey<StructureProcessorList> ENTRANCE_REPLACEMENT = createKey("entrance_replacement");
68
	public static final ResourceKey<StructureProcessorList> BRIDGE = createKey("bridge");
69
	public static final ResourceKey<StructureProcessorList> ROOF = createKey("roof");
70
	public static final ResourceKey<StructureProcessorList> HIGH_WALL = createKey("high_wall");
71
	public static final ResourceKey<StructureProcessorList> HIGH_RAMPART = createKey("high_rampart");
72
	public static final ResourceKey<StructureProcessorList> FOSSIL_ROT = createKey("fossil_rot");
73
	public static final ResourceKey<StructureProcessorList> FOSSIL_COAL = createKey("fossil_coal");
74
	public static final ResourceKey<StructureProcessorList> FOSSIL_DIAMONDS = createKey("fossil_diamonds");
75
	public static final ResourceKey<StructureProcessorList> ANCIENT_CITY_START_DEGRADATION = createKey("ancient_city_start_degradation");
76
	public static final ResourceKey<StructureProcessorList> ANCIENT_CITY_GENERIC_DEGRADATION = createKey("ancient_city_generic_degradation");
77
	public static final ResourceKey<StructureProcessorList> ANCIENT_CITY_WALLS_DEGRADATION = createKey("ancient_city_walls_degradation");
78
	public static final ResourceKey<StructureProcessorList> TRAIL_RUINS_HOUSES_ARCHAEOLOGY = createKey("trail_ruins_houses_archaeology");
79
	public static final ResourceKey<StructureProcessorList> TRAIL_RUINS_ROADS_ARCHAEOLOGY = createKey("trail_ruins_roads_archaeology");
80
	public static final ResourceKey<StructureProcessorList> TRAIL_RUINS_TOWER_TOP_ARCHAEOLOGY = createKey("trail_ruins_tower_top_archaeology");
81
	public static final ResourceKey<StructureProcessorList> TRIAL_CHAMBERS_COPPER_BULB_DEGRADATION = createKey("trial_chambers_copper_bulb_degradation");
82
83
	private static ResourceKey<StructureProcessorList> createKey(final String name) {
84
		return ResourceKey.create(Registries.PROCESSOR_LIST, Identifier.withDefaultNamespace(name));
85
	}
86
87
	private static void register(
88
		final BootstrapContext<StructureProcessorList> context, final ResourceKey<StructureProcessorList> id, final List<StructureProcessor> processors
89
	) {
90
		context.register(id, new StructureProcessorList(processors));
91
	}
92
93
	public static void bootstrap(final BootstrapContext<StructureProcessorList> context) {
94
		HolderGetter<Block> blocks = context.lookup(Registries.BLOCK);
95
		ProcessorRule ADD_GILDED_BLACKSTONE = new ProcessorRule(
96
			new RandomBlockMatchTest(Blocks.BLACKSTONE, 0.01F), AlwaysTrueTest.INSTANCE, Blocks.GILDED_BLACKSTONE.defaultBlockState()
97
		);
98
		ProcessorRule REMOVE_GILDED_BLACKSTONE = new ProcessorRule(
99
			new RandomBlockMatchTest(Blocks.GILDED_BLACKSTONE, 0.5F), AlwaysTrueTest.INSTANCE, Blocks.BLACKSTONE.defaultBlockState()
100
		);
101
		register(context, EMPTY, ImmutableList.of());
102
		register(
103
			context,
104
			ZOMBIE_PLAINS,
105
			ImmutableList.of(
106
				new RuleProcessor(
107
					ImmutableList.of(
108
						new ProcessorRule(new RandomBlockMatchTest(Blocks.COBBLESTONE, 0.8F), AlwaysTrueTest.INSTANCE, Blocks.MOSSY_COBBLESTONE.defaultBlockState()),
109
						new ProcessorRule(new TagMatchTest(BlockTags.DOORS), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
110
						new ProcessorRule(new BlockMatchTest(Blocks.TORCH), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
111
						new ProcessorRule(new BlockMatchTest(Blocks.WALL_TORCH), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
112
						new ProcessorRule(new RandomBlockMatchTest(Blocks.COBBLESTONE, 0.07F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
113
						new ProcessorRule(new RandomBlockMatchTest(Blocks.MOSSY_COBBLESTONE, 0.07F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
114
						new ProcessorRule(new RandomBlockMatchTest(Blocks.DYED_TERRACOTTA.white(), 0.07F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
115
						new ProcessorRule(new RandomBlockMatchTest(Blocks.OAK_LOG, 0.05F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
116
						new ProcessorRule(new RandomBlockMatchTest(Blocks.OAK_PLANKS, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
117
						new ProcessorRule(new RandomBlockMatchTest(Blocks.OAK_STAIRS, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
118
						new ProcessorRule(new RandomBlockMatchTest(Blocks.STRIPPED_OAK_LOG, 0.02F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
119
						new ProcessorRule(new RandomBlockMatchTest(Blocks.GLASS_PANE, 0.5F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
120
						new ProcessorRule(
121
							new BlockStateMatchTest(Blocks.GLASS_PANE.defaultBlockState().setValue(IronBarsBlock.NORTH, true).setValue(IronBarsBlock.SOUTH, true)),
122
							AlwaysTrueTest.INSTANCE,
123
							Blocks.STAINED_GLASS_PANE.brown().defaultBlockState().setValue(IronBarsBlock.NORTH, true).setValue(IronBarsBlock.SOUTH, true)
124
						),
125
						new ProcessorRule(
126
							new BlockStateMatchTest(Blocks.GLASS_PANE.defaultBlockState().setValue(IronBarsBlock.EAST, true).setValue(IronBarsBlock.WEST, true)),
127
							AlwaysTrueTest.INSTANCE,
128
							Blocks.STAINED_GLASS_PANE.brown().defaultBlockState().setValue(IronBarsBlock.EAST, true).setValue(IronBarsBlock.WEST, true)
129
						),
130
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.3F), AlwaysTrueTest.INSTANCE, Blocks.CARROTS.defaultBlockState()),
131
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.2F), AlwaysTrueTest.INSTANCE, Blocks.POTATOES.defaultBlockState()),
132
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.BEETROOTS.defaultBlockState())
133
					)
134
				)
135
			)
136
		);
137
		register(
138
			context,
139
			ZOMBIE_SAVANNA,
140
			ImmutableList.of(
141
				new RuleProcessor(
142
					ImmutableList.of(
143
						new ProcessorRule(new TagMatchTest(BlockTags.DOORS), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
144
						new ProcessorRule(new BlockMatchTest(Blocks.TORCH), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
145
						new ProcessorRule(new BlockMatchTest(Blocks.WALL_TORCH), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
146
						new ProcessorRule(new RandomBlockMatchTest(Blocks.ACACIA_PLANKS, 0.2F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
147
						new ProcessorRule(new RandomBlockMatchTest(Blocks.ACACIA_STAIRS, 0.2F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
148
						new ProcessorRule(new RandomBlockMatchTest(Blocks.ACACIA_LOG, 0.05F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
149
						new ProcessorRule(new RandomBlockMatchTest(Blocks.ACACIA_WOOD, 0.05F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
150
						new ProcessorRule(new RandomBlockMatchTest(Blocks.DYED_TERRACOTTA.orange(), 0.05F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
151
						new ProcessorRule(new RandomBlockMatchTest(Blocks.DYED_TERRACOTTA.yellow(), 0.05F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
152
						new ProcessorRule(new RandomBlockMatchTest(Blocks.DYED_TERRACOTTA.red(), 0.05F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
153
						new ProcessorRule(new RandomBlockMatchTest(Blocks.GLASS_PANE, 0.5F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
154
						new ProcessorRule(
155
							new BlockStateMatchTest(Blocks.GLASS_PANE.defaultBlockState().setValue(IronBarsBlock.NORTH, true).setValue(IronBarsBlock.SOUTH, true)),
156
							AlwaysTrueTest.INSTANCE,
157
							Blocks.STAINED_GLASS_PANE.brown().defaultBlockState().setValue(IronBarsBlock.NORTH, true).setValue(IronBarsBlock.SOUTH, true)
158
						),
159
						new ProcessorRule(
160
							new BlockStateMatchTest(Blocks.GLASS_PANE.defaultBlockState().setValue(IronBarsBlock.EAST, true).setValue(IronBarsBlock.WEST, true)),
161
							AlwaysTrueTest.INSTANCE,
162
							Blocks.STAINED_GLASS_PANE.brown().defaultBlockState().setValue(IronBarsBlock.EAST, true).setValue(IronBarsBlock.WEST, true)
163
						),
164
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.MELON_STEM.defaultBlockState())
165
					)
166
				)
167
			)
168
		);
169
		register(
170
			context,
171
			ZOMBIE_SNOWY,
172
			ImmutableList.of(
173
				new RuleProcessor(
174
					ImmutableList.of(
175
						new ProcessorRule(new TagMatchTest(BlockTags.DOORS), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
176
						new ProcessorRule(new BlockMatchTest(Blocks.TORCH), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
177
						new ProcessorRule(new BlockMatchTest(Blocks.WALL_TORCH), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
178
						new ProcessorRule(new BlockMatchTest(Blocks.LANTERN), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
179
						new ProcessorRule(new RandomBlockMatchTest(Blocks.SPRUCE_PLANKS, 0.2F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
180
						new ProcessorRule(new RandomBlockMatchTest(Blocks.SPRUCE_SLAB, 0.4F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
181
						new ProcessorRule(new RandomBlockMatchTest(Blocks.STRIPPED_SPRUCE_LOG, 0.05F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
182
						new ProcessorRule(new RandomBlockMatchTest(Blocks.STRIPPED_SPRUCE_WOOD, 0.05F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
183
						new ProcessorRule(new RandomBlockMatchTest(Blocks.GLASS_PANE, 0.5F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
184
						new ProcessorRule(
185
							new BlockStateMatchTest(Blocks.GLASS_PANE.defaultBlockState().setValue(IronBarsBlock.NORTH, true).setValue(IronBarsBlock.SOUTH, true)),
186
							AlwaysTrueTest.INSTANCE,
187
							Blocks.STAINED_GLASS_PANE.brown().defaultBlockState().setValue(IronBarsBlock.NORTH, true).setValue(IronBarsBlock.SOUTH, true)
188
						),
189
						new ProcessorRule(
190
							new BlockStateMatchTest(Blocks.GLASS_PANE.defaultBlockState().setValue(IronBarsBlock.EAST, true).setValue(IronBarsBlock.WEST, true)),
191
							AlwaysTrueTest.INSTANCE,
192
							Blocks.STAINED_GLASS_PANE.brown().defaultBlockState().setValue(IronBarsBlock.EAST, true).setValue(IronBarsBlock.WEST, true)
193
						),
194
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.CARROTS.defaultBlockState()),
195
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.8F), AlwaysTrueTest.INSTANCE, Blocks.POTATOES.defaultBlockState())
196
					)
197
				)
198
			)
199
		);
200
		register(
201
			context,
202
			ZOMBIE_TAIGA,
203
			ImmutableList.of(
204
				new RuleProcessor(
205
					ImmutableList.of(
206
						new ProcessorRule(new RandomBlockMatchTest(Blocks.COBBLESTONE, 0.8F), AlwaysTrueTest.INSTANCE, Blocks.MOSSY_COBBLESTONE.defaultBlockState()),
207
						new ProcessorRule(new TagMatchTest(BlockTags.DOORS), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
208
						new ProcessorRule(new BlockMatchTest(Blocks.TORCH), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
209
						new ProcessorRule(new BlockMatchTest(Blocks.WALL_TORCH), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
210
						new ProcessorRule(new BlockMatchTest(Blocks.CAMPFIRE), AlwaysTrueTest.INSTANCE, Blocks.CAMPFIRE.defaultBlockState().setValue(CampfireBlock.LIT, false)),
211
						new ProcessorRule(new RandomBlockMatchTest(Blocks.COBBLESTONE, 0.08F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
212
						new ProcessorRule(new RandomBlockMatchTest(Blocks.SPRUCE_LOG, 0.08F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
213
						new ProcessorRule(new RandomBlockMatchTest(Blocks.GLASS_PANE, 0.5F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
214
						new ProcessorRule(
215
							new BlockStateMatchTest(Blocks.GLASS_PANE.defaultBlockState().setValue(IronBarsBlock.NORTH, true).setValue(IronBarsBlock.SOUTH, true)),
216
							AlwaysTrueTest.INSTANCE,
217
							Blocks.STAINED_GLASS_PANE.brown().defaultBlockState().setValue(IronBarsBlock.NORTH, true).setValue(IronBarsBlock.SOUTH, true)
218
						),
219
						new ProcessorRule(
220
							new BlockStateMatchTest(Blocks.GLASS_PANE.defaultBlockState().setValue(IronBarsBlock.EAST, true).setValue(IronBarsBlock.WEST, true)),
221
							AlwaysTrueTest.INSTANCE,
222
							Blocks.STAINED_GLASS_PANE.brown().defaultBlockState().setValue(IronBarsBlock.EAST, true).setValue(IronBarsBlock.WEST, true)
223
						),
224
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.3F), AlwaysTrueTest.INSTANCE, Blocks.PUMPKIN_STEM.defaultBlockState()),
225
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.2F), AlwaysTrueTest.INSTANCE, Blocks.POTATOES.defaultBlockState())
226
					)
227
				)
228
			)
229
		);
230
		register(
231
			context,
232
			ZOMBIE_DESERT,
233
			ImmutableList.of(
234
				new RuleProcessor(
235
					ImmutableList.of(
236
						new ProcessorRule(new TagMatchTest(BlockTags.DOORS), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
237
						new ProcessorRule(new BlockMatchTest(Blocks.TORCH), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
238
						new ProcessorRule(new BlockMatchTest(Blocks.WALL_TORCH), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
239
						new ProcessorRule(new RandomBlockMatchTest(Blocks.SMOOTH_SANDSTONE, 0.08F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
240
						new ProcessorRule(new RandomBlockMatchTest(Blocks.CUT_SANDSTONE, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
241
						new ProcessorRule(new RandomBlockMatchTest(Blocks.TERRACOTTA, 0.08F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
242
						new ProcessorRule(new RandomBlockMatchTest(Blocks.SMOOTH_SANDSTONE_STAIRS, 0.08F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
243
						new ProcessorRule(new RandomBlockMatchTest(Blocks.SMOOTH_SANDSTONE_SLAB, 0.08F), AlwaysTrueTest.INSTANCE, Blocks.COBWEB.defaultBlockState()),
244
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.2F), AlwaysTrueTest.INSTANCE, Blocks.BEETROOTS.defaultBlockState()),
245
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.MELON_STEM.defaultBlockState())
246
					)
247
				)
248
			)
249
		);
250
		register(
251
			context,
252
			MOSSIFY_10_PERCENT,
253
			ImmutableList.of(
254
				new RuleProcessor(
255
					ImmutableList.of(
256
						new ProcessorRule(new RandomBlockMatchTest(Blocks.COBBLESTONE, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.MOSSY_COBBLESTONE.defaultBlockState())
257
					)
258
				)
259
			)
260
		);
261
		register(
262
			context,
263
			MOSSIFY_20_PERCENT,
264
			ImmutableList.of(
265
				new RuleProcessor(
266
					ImmutableList.of(
267
						new ProcessorRule(new RandomBlockMatchTest(Blocks.COBBLESTONE, 0.2F), AlwaysTrueTest.INSTANCE, Blocks.MOSSY_COBBLESTONE.defaultBlockState())
268
					)
269
				)
270
			)
271
		);
272
		register(
273
			context,
274
			MOSSIFY_70_PERCENT,
275
			ImmutableList.of(
276
				new RuleProcessor(
277
					ImmutableList.of(
278
						new ProcessorRule(new RandomBlockMatchTest(Blocks.COBBLESTONE, 0.7F), AlwaysTrueTest.INSTANCE, Blocks.MOSSY_COBBLESTONE.defaultBlockState())
279
					)
280
				)
281
			)
282
		);
283
		register(
284
			context,
285
			STREET_PLAINS,
286
			ImmutableList.of(
287
				new RuleProcessor(
288
					ImmutableList.of(
289
						new ProcessorRule(new BlockMatchTest(Blocks.DIRT_PATH), new BlockMatchTest(Blocks.WATER), Blocks.OAK_PLANKS.defaultBlockState()),
290
						new ProcessorRule(new RandomBlockMatchTest(Blocks.DIRT_PATH, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.GRASS_BLOCK.defaultBlockState()),
291
						new ProcessorRule(new BlockMatchTest(Blocks.GRASS_BLOCK), new BlockMatchTest(Blocks.WATER), Blocks.WATER.defaultBlockState()),
292
						new ProcessorRule(new BlockMatchTest(Blocks.DIRT), new BlockMatchTest(Blocks.WATER), Blocks.WATER.defaultBlockState())
293
					)
294
				)
295
			)
296
		);
297
		register(
298
			context,
299
			STREET_SAVANNA,
300
			ImmutableList.of(
301
				new RuleProcessor(
302
					ImmutableList.of(
303
						new ProcessorRule(new BlockMatchTest(Blocks.DIRT_PATH), new BlockMatchTest(Blocks.WATER), Blocks.ACACIA_PLANKS.defaultBlockState()),
304
						new ProcessorRule(new RandomBlockMatchTest(Blocks.DIRT_PATH, 0.2F), AlwaysTrueTest.INSTANCE, Blocks.GRASS_BLOCK.defaultBlockState()),
305
						new ProcessorRule(new BlockMatchTest(Blocks.GRASS_BLOCK), new BlockMatchTest(Blocks.WATER), Blocks.WATER.defaultBlockState()),
306
						new ProcessorRule(new BlockMatchTest(Blocks.DIRT), new BlockMatchTest(Blocks.WATER), Blocks.WATER.defaultBlockState())
307
					)
308
				)
309
			)
310
		);
311
		register(
312
			context,
313
			STREET_SNOWY_OR_TAIGA,
314
			ImmutableList.of(
315
				new RuleProcessor(
316
					ImmutableList.of(
317
						new ProcessorRule(new BlockMatchTest(Blocks.DIRT_PATH), new BlockMatchTest(Blocks.WATER), Blocks.SPRUCE_PLANKS.defaultBlockState()),
318
						new ProcessorRule(new BlockMatchTest(Blocks.DIRT_PATH), new BlockMatchTest(Blocks.ICE), Blocks.SPRUCE_PLANKS.defaultBlockState()),
319
						new ProcessorRule(new RandomBlockMatchTest(Blocks.DIRT_PATH, 0.2F), AlwaysTrueTest.INSTANCE, Blocks.GRASS_BLOCK.defaultBlockState()),
320
						new ProcessorRule(new BlockMatchTest(Blocks.GRASS_BLOCK), new BlockMatchTest(Blocks.WATER), Blocks.WATER.defaultBlockState()),
321
						new ProcessorRule(new BlockMatchTest(Blocks.DIRT), new BlockMatchTest(Blocks.WATER), Blocks.WATER.defaultBlockState())
322
					)
323
				)
324
			)
325
		);
326
		register(
327
			context,
328
			FARM_PLAINS,
329
			ImmutableList.of(
330
				new RuleProcessor(
331
					ImmutableList.of(
332
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.3F), AlwaysTrueTest.INSTANCE, Blocks.CARROTS.defaultBlockState()),
333
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.2F), AlwaysTrueTest.INSTANCE, Blocks.POTATOES.defaultBlockState()),
334
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.BEETROOTS.defaultBlockState())
335
					)
336
				)
337
			)
338
		);
339
		register(
340
			context,
341
			FARM_SAVANNA,
342
			ImmutableList.of(
343
				new RuleProcessor(
344
					ImmutableList.of(new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.MELON_STEM.defaultBlockState()))
345
				)
346
			)
347
		);
348
		register(
349
			context,
350
			FARM_SNOWY,
351
			ImmutableList.of(
352
				new RuleProcessor(
353
					ImmutableList.of(
354
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.CARROTS.defaultBlockState()),
355
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.8F), AlwaysTrueTest.INSTANCE, Blocks.POTATOES.defaultBlockState())
356
					)
357
				)
358
			)
359
		);
360
		register(
361
			context,
362
			FARM_TAIGA,
363
			ImmutableList.of(
364
				new RuleProcessor(
365
					ImmutableList.of(
366
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.3F), AlwaysTrueTest.INSTANCE, Blocks.PUMPKIN_STEM.defaultBlockState()),
367
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.2F), AlwaysTrueTest.INSTANCE, Blocks.POTATOES.defaultBlockState())
368
					)
369
				)
370
			)
371
		);
372
		register(
373
			context,
374
			FARM_DESERT,
375
			ImmutableList.of(
376
				new RuleProcessor(
377
					ImmutableList.of(
378
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.2F), AlwaysTrueTest.INSTANCE, Blocks.BEETROOTS.defaultBlockState()),
379
						new ProcessorRule(new RandomBlockMatchTest(Blocks.WHEAT, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.MELON_STEM.defaultBlockState())
380
					)
381
				)
382
			)
383
		);
384
		register(context, OUTPOST_ROT, ImmutableList.of(new BlockRotProcessor(0.05F)));
385
		register(
386
			context,
387
			BOTTOM_RAMPART,
388
			ImmutableList.of(
389
				new RuleProcessor(
390
					ImmutableList.of(
391
						new ProcessorRule(
392
							new RandomBlockMatchTest(Blocks.MAGMA_BLOCK, 0.75F), AlwaysTrueTest.INSTANCE, Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS.defaultBlockState()
393
						),
394
						new ProcessorRule(
395
							new RandomBlockMatchTest(Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS, 0.15F),
396
							AlwaysTrueTest.INSTANCE,
397
							Blocks.POLISHED_BLACKSTONE_BRICKS.defaultBlockState()
398
						),
399
						REMOVE_GILDED_BLACKSTONE,
400
						ADD_GILDED_BLACKSTONE
401
					)
402
				)
403
			)
404
		);
405
		register(
406
			context,
407
			TREASURE_ROOMS,
408
			ImmutableList.of(
409
				new RuleProcessor(
410
					ImmutableList.of(
411
						new ProcessorRule(
412
							new RandomBlockMatchTest(Blocks.POLISHED_BLACKSTONE_BRICKS, 0.35F),
413
							AlwaysTrueTest.INSTANCE,
414
							Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS.defaultBlockState()
415
						),
416
						new ProcessorRule(
417
							new RandomBlockMatchTest(Blocks.CHISELED_POLISHED_BLACKSTONE, 0.1F),
418
							AlwaysTrueTest.INSTANCE,
419
							Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS.defaultBlockState()
420
						),
421
						REMOVE_GILDED_BLACKSTONE,
422
						ADD_GILDED_BLACKSTONE
423
					)
424
				)
425
			)
426
		);
427
		register(
428
			context,
429
			HOUSING,
430
			ImmutableList.of(
431
				new RuleProcessor(
432
					ImmutableList.of(
433
						new ProcessorRule(
434
							new RandomBlockMatchTest(Blocks.POLISHED_BLACKSTONE_BRICKS, 0.3F),
435
							AlwaysTrueTest.INSTANCE,
436
							Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS.defaultBlockState()
437
						),
438
						new ProcessorRule(new RandomBlockMatchTest(Blocks.BLACKSTONE, 1.0E-4F), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
439
						REMOVE_GILDED_BLACKSTONE,
440
						ADD_GILDED_BLACKSTONE
441
					)
442
				)
443
			)
444
		);
445
		register(
446
			context,
447
			SIDE_WALL_DEGRADATION,
448
			ImmutableList.of(
449
				new RuleProcessor(
450
					ImmutableList.of(
451
						new ProcessorRule(new RandomBlockMatchTest(Blocks.CHISELED_POLISHED_BLACKSTONE, 0.5F), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
452
						new ProcessorRule(
453
							new RandomBlockMatchTest(Blocks.GOLD_BLOCK, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS.defaultBlockState()
454
						),
455
						REMOVE_GILDED_BLACKSTONE,
456
						ADD_GILDED_BLACKSTONE
457
					)
458
				)
459
			)
460
		);
461
		register(
462
			context,
463
			STABLE_DEGRADATION,
464
			ImmutableList.of(
465
				new RuleProcessor(
466
					ImmutableList.of(
467
						new ProcessorRule(
468
							new RandomBlockMatchTest(Blocks.POLISHED_BLACKSTONE_BRICKS, 0.1F),
469
							AlwaysTrueTest.INSTANCE,
470
							Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS.defaultBlockState()
471
						),
472
						new ProcessorRule(new RandomBlockMatchTest(Blocks.BLACKSTONE, 1.0E-4F), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
473
						REMOVE_GILDED_BLACKSTONE,
474
						ADD_GILDED_BLACKSTONE
475
					)
476
				)
477
			)
478
		);
479
		register(
480
			context,
481
			BASTION_GENERIC_DEGRADATION,
482
			ImmutableList.of(
483
				new RuleProcessor(
484
					ImmutableList.of(
485
						new ProcessorRule(
486
							new RandomBlockMatchTest(Blocks.POLISHED_BLACKSTONE_BRICKS, 0.3F),
487
							AlwaysTrueTest.INSTANCE,
488
							Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS.defaultBlockState()
489
						),
490
						new ProcessorRule(new RandomBlockMatchTest(Blocks.BLACKSTONE, 1.0E-4F), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
491
						new ProcessorRule(
492
							new RandomBlockMatchTest(Blocks.GOLD_BLOCK, 0.3F), AlwaysTrueTest.INSTANCE, Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS.defaultBlockState()
493
						),
494
						REMOVE_GILDED_BLACKSTONE,
495
						ADD_GILDED_BLACKSTONE
496
					)
497
				)
498
			)
499
		);
500
		register(
501
			context,
502
			RAMPART_DEGRADATION,
503
			ImmutableList.of(
504
				new RuleProcessor(
505
					ImmutableList.of(
506
						new ProcessorRule(
507
							new RandomBlockMatchTest(Blocks.POLISHED_BLACKSTONE_BRICKS, 0.4F),
508
							AlwaysTrueTest.INSTANCE,
509
							Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS.defaultBlockState()
510
						),
511
						new ProcessorRule(
512
							new RandomBlockMatchTest(Blocks.BLACKSTONE, 0.01F), AlwaysTrueTest.INSTANCE, Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS.defaultBlockState()
513
						),
514
						new ProcessorRule(new RandomBlockMatchTest(Blocks.POLISHED_BLACKSTONE_BRICKS, 1.0E-4F), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
515
						new ProcessorRule(new RandomBlockMatchTest(Blocks.BLACKSTONE, 1.0E-4F), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
516
						new ProcessorRule(
517
							new RandomBlockMatchTest(Blocks.GOLD_BLOCK, 0.3F), AlwaysTrueTest.INSTANCE, Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS.defaultBlockState()
518
						),
519
						REMOVE_GILDED_BLACKSTONE,
520
						ADD_GILDED_BLACKSTONE
521
					)
522
				)
523
			)
524
		);
525
		register(
526
			context,
527
			ENTRANCE_REPLACEMENT,
528
			ImmutableList.of(
529
				new RuleProcessor(
530
					ImmutableList.of(
531
						new ProcessorRule(new RandomBlockMatchTest(Blocks.CHISELED_POLISHED_BLACKSTONE, 0.5F), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
532
						new ProcessorRule(
533
							new RandomBlockMatchTest(Blocks.GOLD_BLOCK, 0.6F), AlwaysTrueTest.INSTANCE, Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS.defaultBlockState()
534
						),
535
						REMOVE_GILDED_BLACKSTONE,
536
						ADD_GILDED_BLACKSTONE
537
					)
538
				)
539
			)
540
		);
541
		register(
542
			context,
543
			BRIDGE,
544
			ImmutableList.of(
545
				new RuleProcessor(
546
					ImmutableList.of(
547
						new ProcessorRule(
548
							new RandomBlockMatchTest(Blocks.POLISHED_BLACKSTONE_BRICKS, 0.3F),
549
							AlwaysTrueTest.INSTANCE,
550
							Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS.defaultBlockState()
551
						),
552
						new ProcessorRule(new RandomBlockMatchTest(Blocks.BLACKSTONE, 1.0E-4F), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState())
553
					)
554
				)
555
			)
556
		);
557
		register(
558
			context,
559
			ROOF,
560
			ImmutableList.of(
561
				new RuleProcessor(
562
					ImmutableList.of(
563
						new ProcessorRule(
564
							new RandomBlockMatchTest(Blocks.POLISHED_BLACKSTONE_BRICKS, 0.3F),
565
							AlwaysTrueTest.INSTANCE,
566
							Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS.defaultBlockState()
567
						),
568
						new ProcessorRule(new RandomBlockMatchTest(Blocks.POLISHED_BLACKSTONE_BRICKS, 0.15F), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
569
						new ProcessorRule(new RandomBlockMatchTest(Blocks.POLISHED_BLACKSTONE_BRICKS, 0.3F), AlwaysTrueTest.INSTANCE, Blocks.BLACKSTONE.defaultBlockState())
570
					)
571
				)
572
			)
573
		);
574
		register(
575
			context,
576
			HIGH_WALL,
577
			ImmutableList.of(
578
				new RuleProcessor(
579
					ImmutableList.of(
580
						new ProcessorRule(new RandomBlockMatchTest(Blocks.POLISHED_BLACKSTONE_BRICKS, 0.01F), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
581
						new ProcessorRule(
582
							new RandomBlockMatchTest(Blocks.POLISHED_BLACKSTONE_BRICKS, 0.5F),
583
							AlwaysTrueTest.INSTANCE,
584
							Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS.defaultBlockState()
585
						),
586
						new ProcessorRule(new RandomBlockMatchTest(Blocks.POLISHED_BLACKSTONE_BRICKS, 0.3F), AlwaysTrueTest.INSTANCE, Blocks.BLACKSTONE.defaultBlockState()),
587
						REMOVE_GILDED_BLACKSTONE
588
					)
589
				)
590
			)
591
		);
592
		register(
593
			context,
594
			HIGH_RAMPART,
595
			ImmutableList.of(
596
				new RuleProcessor(
597
					ImmutableList.of(
598
						new ProcessorRule(
599
							new RandomBlockMatchTest(Blocks.GOLD_BLOCK, 0.3F), AlwaysTrueTest.INSTANCE, Blocks.CRACKED_POLISHED_BLACKSTONE_BRICKS.defaultBlockState()
600
						),
601
						new ProcessorRule(
602
							AlwaysTrueTest.INSTANCE, AlwaysTrueTest.INSTANCE, new AxisAlignedLinearPosTest(0.0F, 0.05F, 0, 100, Direction.Axis.Y), Blocks.AIR.defaultBlockState()
603
						),
604
						REMOVE_GILDED_BLACKSTONE
605
					)
606
				)
607
			)
608
		);
609
		register(
610
			context, FOSSIL_ROT, ImmutableList.of(new BlockRotProcessor(0.9F), new ProtectedBlockProcessor(blocks.getOrThrow(BlockTags.FEATURES_CANNOT_REPLACE)))
611
		);
612
		register(
613
			context, FOSSIL_COAL, ImmutableList.of(new BlockRotProcessor(0.1F), new ProtectedBlockProcessor(blocks.getOrThrow(BlockTags.FEATURES_CANNOT_REPLACE)))
614
		);
615
		register(
616
			context,
617
			FOSSIL_DIAMONDS,
618
			ImmutableList.of(
619
				new BlockRotProcessor(0.1F),
620
				new RuleProcessor(
621
					ImmutableList.of(new ProcessorRule(new BlockMatchTest(Blocks.COAL_ORE), AlwaysTrueTest.INSTANCE, Blocks.DEEPSLATE_DIAMOND_ORE.defaultBlockState()))
622
				),
623
				new ProtectedBlockProcessor(blocks.getOrThrow(BlockTags.FEATURES_CANNOT_REPLACE))
624
			)
625
		);
626
		register(
627
			context,
628
			ANCIENT_CITY_START_DEGRADATION,
629
			ImmutableList.of(
630
				new RuleProcessor(
631
					ImmutableList.of(
632
						new ProcessorRule(new RandomBlockMatchTest(Blocks.DEEPSLATE_BRICKS, 0.3F), AlwaysTrueTest.INSTANCE, Blocks.CRACKED_DEEPSLATE_BRICKS.defaultBlockState()),
633
						new ProcessorRule(new RandomBlockMatchTest(Blocks.DEEPSLATE_TILES, 0.3F), AlwaysTrueTest.INSTANCE, Blocks.CRACKED_DEEPSLATE_TILES.defaultBlockState()),
634
						new ProcessorRule(new RandomBlockMatchTest(Blocks.SOUL_LANTERN, 0.05F), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState())
635
					)
636
				),
637
				new ProtectedBlockProcessor(blocks.getOrThrow(BlockTags.FEATURES_CANNOT_REPLACE))
638
			)
639
		);
640
		register(
641
			context,
642
			ANCIENT_CITY_GENERIC_DEGRADATION,
643
			ImmutableList.of(
644
				new BlockRotProcessor(blocks.getOrThrow(BlockTags.ANCIENT_CITY_REPLACEABLE), 0.95F),
645
				new RuleProcessor(
646
					ImmutableList.of(
647
						new ProcessorRule(new RandomBlockMatchTest(Blocks.DEEPSLATE_BRICKS, 0.3F), AlwaysTrueTest.INSTANCE, Blocks.CRACKED_DEEPSLATE_BRICKS.defaultBlockState()),
648
						new ProcessorRule(new RandomBlockMatchTest(Blocks.DEEPSLATE_TILES, 0.3F), AlwaysTrueTest.INSTANCE, Blocks.CRACKED_DEEPSLATE_TILES.defaultBlockState()),
649
						new ProcessorRule(new RandomBlockMatchTest(Blocks.SOUL_LANTERN, 0.05F), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState())
650
					)
651
				),
652
				new ProtectedBlockProcessor(blocks.getOrThrow(BlockTags.FEATURES_CANNOT_REPLACE))
653
			)
654
		);
655
		register(
656
			context,
657
			ANCIENT_CITY_WALLS_DEGRADATION,
658
			ImmutableList.of(
659
				new BlockRotProcessor(blocks.getOrThrow(BlockTags.ANCIENT_CITY_REPLACEABLE), 0.95F),
660
				new RuleProcessor(
661
					ImmutableList.of(
662
						new ProcessorRule(new RandomBlockMatchTest(Blocks.DEEPSLATE_BRICKS, 0.3F), AlwaysTrueTest.INSTANCE, Blocks.CRACKED_DEEPSLATE_BRICKS.defaultBlockState()),
663
						new ProcessorRule(new RandomBlockMatchTest(Blocks.DEEPSLATE_TILES, 0.3F), AlwaysTrueTest.INSTANCE, Blocks.CRACKED_DEEPSLATE_TILES.defaultBlockState()),
664
						new ProcessorRule(new RandomBlockMatchTest(Blocks.DEEPSLATE_TILE_SLAB, 0.3F), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState()),
665
						new ProcessorRule(new RandomBlockMatchTest(Blocks.SOUL_LANTERN, 0.05F), AlwaysTrueTest.INSTANCE, Blocks.AIR.defaultBlockState())
666
					)
667
				),
668
				new ProtectedBlockProcessor(blocks.getOrThrow(BlockTags.FEATURES_CANNOT_REPLACE))
669
			)
670
		);
671
		register(
672
			context,
673
			TRAIL_RUINS_HOUSES_ARCHAEOLOGY,
674
			List.of(
675
				new RuleProcessor(
676
					List.of(
677
						new ProcessorRule(new RandomBlockMatchTest(Blocks.GRAVEL, 0.2F), AlwaysTrueTest.INSTANCE, Blocks.DIRT.defaultBlockState()),
678
						new ProcessorRule(new RandomBlockMatchTest(Blocks.GRAVEL, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.COARSE_DIRT.defaultBlockState()),
679
						new ProcessorRule(new RandomBlockMatchTest(Blocks.MUD_BRICKS, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.PACKED_MUD.defaultBlockState())
680
					)
681
				),
682
				trailsArchyLootProcessor(BuiltInLootTables.TRAIL_RUINS_ARCHAEOLOGY_COMMON, 6),
683
				trailsArchyLootProcessor(BuiltInLootTables.TRAIL_RUINS_ARCHAEOLOGY_RARE, 3)
684
			)
685
		);
686
		register(
687
			context,
688
			TRAIL_RUINS_ROADS_ARCHAEOLOGY,
689
			List.of(
690
				new RuleProcessor(
691
					List.of(
692
						new ProcessorRule(new RandomBlockMatchTest(Blocks.GRAVEL, 0.2F), AlwaysTrueTest.INSTANCE, Blocks.DIRT.defaultBlockState()),
693
						new ProcessorRule(new RandomBlockMatchTest(Blocks.GRAVEL, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.COARSE_DIRT.defaultBlockState()),
694
						new ProcessorRule(new RandomBlockMatchTest(Blocks.MUD_BRICKS, 0.1F), AlwaysTrueTest.INSTANCE, Blocks.PACKED_MUD.defaultBlockState())
695
					)
696
				),
697
				trailsArchyLootProcessor(BuiltInLootTables.TRAIL_RUINS_ARCHAEOLOGY_COMMON, 2)
698
			)
699
		);
700
		register(context, TRAIL_RUINS_TOWER_TOP_ARCHAEOLOGY, List.of(trailsArchyLootProcessor(BuiltInLootTables.TRAIL_RUINS_ARCHAEOLOGY_COMMON, 2)));
701
		register(
702
			context,
703
			TRIAL_CHAMBERS_COPPER_BULB_DEGRADATION,
704
			List.of(
705
				new RuleProcessor(
706
					List.of(
707
						new ProcessorRule(
708
							new RandomBlockMatchTest(Blocks.COPPER_BULB.waxed().unaffected(), 0.1F),
709
							AlwaysTrueTest.INSTANCE,
710
							Blocks.COPPER_BULB.waxed().oxidized().defaultBlockState().setValue(CopperBulbBlock.LIT, true)
711
						),
712
						new ProcessorRule(
713
							new RandomBlockMatchTest(Blocks.COPPER_BULB.waxed().unaffected(), 0.33333334F),
714
							AlwaysTrueTest.INSTANCE,
715
							Blocks.COPPER_BULB.waxed().weathered().defaultBlockState().setValue(CopperBulbBlock.LIT, true)
716
						),
717
						new ProcessorRule(
718
							new RandomBlockMatchTest(Blocks.COPPER_BULB.waxed().unaffected(), 0.5F),
719
							AlwaysTrueTest.INSTANCE,
720
							Blocks.COPPER_BULB.waxed().exposed().defaultBlockState().setValue(CopperBulbBlock.LIT, true)
721
						)
722
					)
723
				),
724
				new ProtectedBlockProcessor(blocks.getOrThrow(BlockTags.FEATURES_CANNOT_REPLACE))
725
			)
726
		);
727
	}
728
729
	private static CappedProcessor trailsArchyLootProcessor(final ResourceKey<LootTable> lootTable, final int count) {
730
		return new CappedProcessor(
731
			new RuleProcessor(
732
				List.of(
733
					new ProcessorRule(
734
						new TagMatchTest(BlockTags.TRAIL_RUINS_REPLACEABLE),
735
						AlwaysTrueTest.INSTANCE,
736
						PosAlwaysTrueTest.INSTANCE,
737
						Blocks.SUSPICIOUS_GRAVEL.defaultBlockState(),
738
						new AppendLoot(lootTable)
739
					)
740
				)
741
			),
742
			ConstantInt.of(count)
743
		);
744
	}
745
}
746

Decompiled Minecraft 26.3 source of ProcessorLists (net/minecraft/data/worldgen/ProcessorLists.java) with Mojang official mappings, stored verbatim on the site.