Class StructureProcessor
java.lang.Object
net.minecraft.world.level.levelgen.structure.templatesystem.StructureProcessor
- Direct Known Subclasses:
BlackstoneReplaceProcessor
,BlockAgeProcessor
,BlockIgnoreProcessor
,BlockRotProcessor
,GravityProcessor
,JigsawReplacementProcessor
,LavaSubmergedBlockProcessor
,NopProcessor
,ProtectedBlockProcessor
,RuleProcessor
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
@Nullable @Deprecated public StructureTemplate.StructureBlockInfo processBlock(LevelReader p_74416_, BlockPos p_74417_, BlockPos p_74418_, StructureTemplate.StructureBlockInfo p_74419_, StructureTemplate.StructureBlockInfo p_74420_, StructurePlaceSettings p_74421_)Deprecated. -
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:
process(LevelReader, BlockPos, BlockPos, StructureTemplate.StructureBlockInfo, StructureTemplate.StructureBlockInfo, StructurePlaceSettings, StructureTemplate)
-