Class StructureProcessor
- java.lang.Object
-
- net.minecraft.world.gen.feature.template.StructureProcessor
-
- Direct Known Subclasses:
BlackStoneReplacementProcessor
,BlockIgnoreStructureProcessor
,BlockMosinessProcessor
,GravityStructureProcessor
,IntegrityProcessor
,JigsawReplacementStructureProcessor
,LavaSubmergingProcessor
,NopProcessor
,RuleStructureProcessor
public abstract class StructureProcessor extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description StructureProcessor()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Deprecated Methods Modifier and Type Method Description protected abstract IStructureProcessorType<?>
getType()
Template.BlockInfo
process(IWorldReader p_230386_1_, BlockPos p_230386_2_, BlockPos p_230386_3_, Template.BlockInfo p_230386_4_, Template.BlockInfo p_230386_5_, PlacementSettings p_230386_6_, Template template)
Template.BlockInfo
processBlock(IWorldReader p_230386_1_, BlockPos p_230386_2_, BlockPos p_230386_3_, Template.BlockInfo p_230386_4_, Template.BlockInfo p_230386_5_, PlacementSettings p_230386_6_)
Deprecated.Template.EntityInfo
processEntity(IWorldReader world, BlockPos seedPos, Template.EntityInfo rawEntityInfo, Template.EntityInfo entityInfo, PlacementSettings placementSettings, Template template)
FORGE: Add entity processing.
-
-
-
Method Detail
-
processBlock
@Nullable @Deprecated public Template.BlockInfo processBlock(IWorldReader p_230386_1_, BlockPos p_230386_2_, BlockPos p_230386_3_, Template.BlockInfo p_230386_4_, Template.BlockInfo p_230386_5_, PlacementSettings p_230386_6_)
Deprecated.
-
getType
protected abstract IStructureProcessorType<?> getType()
-
process
@Nullable public Template.BlockInfo process(IWorldReader p_230386_1_, BlockPos p_230386_2_, BlockPos p_230386_3_, Template.BlockInfo p_230386_4_, Template.BlockInfo p_230386_5_, PlacementSettings p_230386_6_, @Nullable Template template)
-
processEntity
public Template.EntityInfo processEntity(IWorldReader world, BlockPos seedPos, Template.EntityInfo rawEntityInfo, Template.EntityInfo entityInfo, PlacementSettings placementSettings, Template 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(IWorldReader, BlockPos, net.minecraft.world.gen.feature.template.Template.BlockInfo, net.minecraft.world.gen.feature.template.Template.BlockInfo, PlacementSettings)
-
-