public abstract class StructureProcessor
extends java.lang.Object
Constructor and Description |
---|
StructureProcessor() |
Modifier and Type | Method and Description |
---|---|
protected abstract IStructureProcessorType |
getType() |
Template.BlockInfo |
process(IWorldReader worldReaderIn,
BlockPos pos,
Template.BlockInfo p_215194_3_,
Template.BlockInfo blockInfo,
PlacementSettings placementSettingsIn)
Deprecated.
|
Template.BlockInfo |
process(IWorldReader worldReaderIn,
BlockPos pos,
Template.BlockInfo p_215194_3_,
Template.BlockInfo blockInfo,
PlacementSettings placementSettingsIn,
Template template)
FORGE: Add template parameter
|
Template.EntityInfo |
processEntity(IWorldReader world,
BlockPos seedPos,
Template.EntityInfo rawEntityInfo,
Template.EntityInfo entityInfo,
PlacementSettings placementSettings,
Template template)
FORGE: Add entity processing.
|
<T> com.mojang.datafixers.Dynamic<T> |
serialize(com.mojang.datafixers.types.DynamicOps<T> ops) |
protected abstract <T> com.mojang.datafixers.Dynamic<T> |
serialize0(com.mojang.datafixers.types.DynamicOps<T> ops) |
@Nullable @Deprecated public Template.BlockInfo process(IWorldReader worldReaderIn, BlockPos pos, Template.BlockInfo p_215194_3_, Template.BlockInfo blockInfo, PlacementSettings placementSettingsIn)
@Nullable public Template.BlockInfo process(IWorldReader worldReaderIn, BlockPos pos, Template.BlockInfo p_215194_3_, Template.BlockInfo blockInfo, PlacementSettings placementSettingsIn, @Nullable Template template)
worldReaderIn
- pos
- p_215194_3_
- blockInfo
- placementSettingsIn
- template
- The template being placed, can be null due to deprecated
method calls.process(IWorldReader, BlockPos,
net.minecraft.world.gen.feature.template.Template.BlockInfo,
net.minecraft.world.gen.feature.template.Template.BlockInfo,
PlacementSettings)
public Template.EntityInfo processEntity(IWorldReader world, BlockPos seedPos, Template.EntityInfo rawEntityInfo, Template.EntityInfo entityInfo, PlacementSettings placementSettings, Template template)
Use this method to process entities from a structure in much the same way as blocks, parameters are analogous.
world
- seedPos
- rawEntityInfo
- entityInfo
- placementSettings
- template
- process(IWorldReader, BlockPos,
net.minecraft.world.gen.feature.template.Template.BlockInfo,
net.minecraft.world.gen.feature.template.Template.BlockInfo,
PlacementSettings)
protected abstract IStructureProcessorType getType()
protected abstract <T> com.mojang.datafixers.Dynamic<T> serialize0(com.mojang.datafixers.types.DynamicOps<T> ops)
public <T> com.mojang.datafixers.Dynamic<T> serialize(com.mojang.datafixers.types.DynamicOps<T> ops)