Class StructureProcessor
java.lang.Object
net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor
- Direct Known Subclasses:
BlackstoneReplaceProcessor
,BlockAgeProcessor
,BlockIgnoreProcessor
,BlockRotProcessor
,CappedProcessor
,GravityProcessor
,JigsawReplacementProcessor
,LavaSubmergedBlockProcessor
,NopProcessor
,ProtectedBlockProcessor
,RuleProcessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionfinalizeProcessing
(ServerLevelAccessor p_278247_, BlockPos p_277590_, BlockPos p_277935_, List<StructureTemplate.StructureBlockInfo> p_278070_, List<StructureTemplate.StructureBlockInfo> p_278053_, StructurePlaceSettings p_277497_) protected abstract StructureProcessorType<?>
getType()
process
(LevelReader p_74140_, BlockPos p_74141_, BlockPos p_74142_, StructureTemplate.StructureBlockInfo p_74143_, StructureTemplate.StructureBlockInfo p_74144_, StructurePlaceSettings p_74145_, StructureTemplate template) processBlock
(LevelReader p_74416_, BlockPos p_74417_, BlockPos p_74418_, StructureTemplate.StructureBlockInfo p_74419_, StructureTemplate.StructureBlockInfo p_74420_, StructurePlaceSettings p_74421_) Deprecated.processEntity
(LevelReader world, BlockPos seedPos, StructureTemplate.StructureEntityInfo rawEntityInfo, StructureTemplate.StructureEntityInfo entityInfo, StructurePlaceSettings placementSettings, StructureTemplate template) FORGE: Add entity processing.
-
Constructor Details
-
StructureProcessor
public StructureProcessor()
-
-
Method Details
-
processBlock
@Deprecated @Nullable public StructureTemplate.StructureBlockInfo processBlock(LevelReader p_74416_, BlockPos p_74417_, BlockPos p_74418_, StructureTemplate.StructureBlockInfo p_74419_, StructureTemplate.StructureBlockInfo p_74420_, StructurePlaceSettings p_74421_) -
getType
-
process
@Nullable public StructureTemplate.StructureBlockInfo process(LevelReader p_74140_, BlockPos p_74141_, BlockPos p_74142_, StructureTemplate.StructureBlockInfo p_74143_, StructureTemplate.StructureBlockInfo p_74144_, StructurePlaceSettings p_74145_, @Nullable StructureTemplate template) -
processEntity
public StructureTemplate.StructureEntityInfo processEntity(LevelReader world, BlockPos seedPos, StructureTemplate.StructureEntityInfo rawEntityInfo, StructureTemplate.StructureEntityInfo entityInfo, StructurePlaceSettings placementSettings, StructureTemplate template) FORGE: Add entity processing.Use this method to process entities from a structure in much the same way as blocks, parameters are analogous.
- Parameters:
world
-seedPos
-rawEntityInfo
-entityInfo
-placementSettings
-template
-- See Also:
-
finalizeProcessing
public List<StructureTemplate.StructureBlockInfo> finalizeProcessing(ServerLevelAccessor p_278247_, BlockPos p_277590_, BlockPos p_277935_, List<StructureTemplate.StructureBlockInfo> p_278070_, List<StructureTemplate.StructureBlockInfo> p_278053_, StructurePlaceSettings p_277497_)
-
process(LevelReader, BlockPos, BlockPos, StructureTemplate.StructureBlockInfo, StructureTemplate.StructureBlockInfo, StructurePlaceSettings, StructureTemplate)
instead.