Class ScatteredFeaturePiece
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.world.level.levelgen.structure.ScatteredFeaturePiece
- Direct Known Subclasses:
DesertPyramidPiece,JungleTemplePiece,SwampHutPiece
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
StructurePiece.BlockSelector -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final intprotected intprotected final intFields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedScatteredFeaturePiece(StructurePieceType pType, int pX, int pY, int pZ, int pWidth, int pHeight, int pDepth, Direction pOrientation) protectedScatteredFeaturePiece(StructurePieceType pType, CompoundTag pTag) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidaddAdditionalSaveData(StructurePieceSerializationContext pContext, CompoundTag pTag) protected booleanupdateAverageGroundHeight(LevelAccessor pLevel, BoundingBox pBounds, int pHeight) protected booleanupdateHeightPositionToLowestGroundHeight(LevelAccessor pLevel, int pHeight) Methods inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
addChildren, canBeReplaced, createBoundingBox, createChest, createChest, createDispenser, createTag, fillColumnDown, findCollisionPiece, generateAirBox, generateBox, generateBox, generateBox, generateBox, generateMaybeBox, generateUpperHalfSphere, getBlock, getBoundingBox, getGenDepth, getLocatorPosition, getMirror, getOrientation, getRandomHorizontalDirection, getRotation, getType, getWorldPos, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, isReplaceableByStructures, makeBoundingBox, maybeGenerateBlock, move, placeBlock, postProcess, reorient, setGenDepth, setOrientation
-
Field Details
-
width
protected final int width -
height
protected final int height -
depth
protected final int depth -
heightPosition
protected int heightPosition
-
-
Constructor Details
-
ScatteredFeaturePiece
protected ScatteredFeaturePiece(StructurePieceType pType, int pX, int pY, int pZ, int pWidth, int pHeight, int pDepth, Direction pOrientation) -
ScatteredFeaturePiece
-
-
Method Details
-
addAdditionalSaveData
- Specified by:
addAdditionalSaveDatain classStructurePiece
-
updateAverageGroundHeight
-
updateHeightPositionToLowestGroundHeight
-