StructureProcessor .java

net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor (interface, 39 lines): members: evaluatesEntirePieceState, processBlock.

net.minecraft.world.level.levelgen.structure.templatesysteminterface39 linescommon1.2 KB

API Surface (0)

No public/protected methods detected (fields or constants only).

Fields & Constants (8)

level
targetPosition
referencePos
templateRelativePos
processedBlockInfo
position
originalBlockInfoList
processedBlockInfoList

Code Graph: Dependencies (5)

Edges (calls / imports / inherits / references) resolved by graphify from the AST. Every chip opens the class source.

Full Source

StructureProcessor.java39 lines · Minecraft 26.3 · verbatim
1
package net.minecraft.world.level.levelgen.structure.templatesystem;
2
3
import com.mojang.serialization.MapCodec;
4
import java.util.List;
5
import net.minecraft.core.BlockPos;
6
import net.minecraft.world.level.LevelReader;
7
import net.minecraft.world.level.ServerLevelAccessor;
8
import org.jspecify.annotations.Nullable;
9
10
public interface StructureProcessor {
11
	default StructureTemplate.@Nullable StructureBlockInfo processBlock(
12
		final LevelReader level,
13
		final BlockPos targetPosition,
14
		final BlockPos referencePos,
15
		final BlockPos templateRelativePos,
16
		final StructureTemplate.StructureBlockInfo processedBlockInfo,
17
		final StructurePlaceSettings settings
18
	) {
19
		return processedBlockInfo;
20
	}
21
22
	MapCodec<? extends StructureProcessor> codec();
23
24
	default List<StructureTemplate.StructureBlockInfo> finalizeProcessing(
25
		final ServerLevelAccessor level,
26
		final BlockPos position,
27
		final BlockPos referencePos,
28
		final List<StructureTemplate.StructureBlockInfo> originalBlockInfoList,
29
		final List<StructureTemplate.StructureBlockInfo> processedBlockInfoList,
30
		final StructurePlaceSettings settings
31
	) {
32
		return processedBlockInfoList;
33
	}
34
35
	default boolean evaluatesEntirePieceState() {
36
		return false;
37
	}
38
}
39

Decompiled Minecraft 26.3 source of StructureProcessor (net/minecraft/world/level/levelgen/structure/templatesystem/StructureProcessor.java) with Mojang official mappings, stored verbatim on the site.