public class RuleStructureProcessor extends StructureProcessor
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<RuleStructureProcessor> |
CODEC |
private ImmutableList<StructureProcessorRule> |
rules |
Constructor and Description |
---|
RuleStructureProcessor(List<? extends StructureProcessorRule> rules) |
Modifier and Type | Method and Description |
---|---|
protected StructureProcessorType<?> |
getType() |
Structure.StructureBlockInfo |
process(WorldView worldView,
BlockPos pos,
BlockPos blockPos,
Structure.StructureBlockInfo structureBlockInfo,
Structure.StructureBlockInfo structureBlockInfo2,
StructurePlacementData structurePlacementData) |
public static final com.mojang.serialization.Codec<RuleStructureProcessor> CODEC
private final ImmutableList<StructureProcessorRule> rules
public RuleStructureProcessor(List<? extends StructureProcessorRule> rules)
@Nullable public Structure.StructureBlockInfo process(WorldView worldView, BlockPos pos, BlockPos blockPos, Structure.StructureBlockInfo structureBlockInfo, Structure.StructureBlockInfo structureBlockInfo2, StructurePlacementData structurePlacementData)
process
in class StructureProcessor
protected StructureProcessorType<?> getType()
getType
in class StructureProcessor