public class GravityStructureProcessor extends StructureProcessor
| Modifier and Type | Field and Description |
|---|---|
private Heightmap.Type |
heightmap |
private int |
offset |
| Constructor and Description |
|---|
GravityStructureProcessor(com.mojang.datafixers.Dynamic<?> dynamic) |
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) |
protected <T> com.mojang.datafixers.Dynamic<T> |
rawToDynamic(com.mojang.datafixers.types.DynamicOps<T> dynamicOps) |
toDynamicprivate final Heightmap.Type heightmap
private final int offset
public GravityStructureProcessor(Heightmap.Type heightmap, int offset)
public GravityStructureProcessor(com.mojang.datafixers.Dynamic<?> dynamic)
@Nullable public Structure.StructureBlockInfo process(WorldView worldView, BlockPos pos, BlockPos blockPos, Structure.StructureBlockInfo structureBlockInfo, Structure.StructureBlockInfo structureBlockInfo2, StructurePlacementData structurePlacementData)
process in class StructureProcessorprotected StructureProcessorType getType()
getType in class StructureProcessorprotected <T> com.mojang.datafixers.Dynamic<T> rawToDynamic(com.mojang.datafixers.types.DynamicOps<T> dynamicOps)
rawToDynamic in class StructureProcessor