public class GravityStructureProcessor extends StructureProcessor
Modifier and Type | Field and Description |
---|---|
static com.mojang.serialization.Codec<GravityStructureProcessor> |
CODEC |
private Heightmap.Type |
heightmap |
private int |
offset |
Constructor and Description |
---|
GravityStructureProcessor(Heightmap.Type heightmap,
int offset) |
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<GravityStructureProcessor> CODEC
private final Heightmap.Type heightmap
private final int offset
public GravityStructureProcessor(Heightmap.Type heightmap, int offset)
@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