Class GravityProcessor
java.lang.Object
net.minecraft.world.level.levelgen.structure.templatesystem.GravityProcessor
- All Implemented Interfaces:
StructureProcessor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final Heightmap.Typesstatic final com.mojang.serialization.MapCodec<GravityProcessor> private final int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.MapCodec<GravityProcessor> codec()processBlock(LevelReader level, BlockPos targetPosition, BlockPos referencePos, BlockPos templateRelativePos, StructureTemplate.StructureBlockInfo processedBlockInfo, StructurePlaceSettings settings) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface StructureProcessor
evaluatesEntirePieceState, finalizeProcessing, process, processEntity
-
Field Details
-
MAP_CODEC
-
heightmap
-
offset
private final int offset
-
-
Constructor Details
-
GravityProcessor
-
-
Method Details
-
processBlock
public @Nullable StructureTemplate.StructureBlockInfo processBlock(LevelReader level, BlockPos targetPosition, BlockPos referencePos, BlockPos templateRelativePos, StructureTemplate.StructureBlockInfo processedBlockInfo, StructurePlaceSettings settings) - Specified by:
processBlockin interfaceStructureProcessor
-
codec
- Specified by:
codecin interfaceStructureProcessor
-