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 StructurePiece
StructurePiece.BlockSelector -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final intprotected final intprotected intprotected final intFields inherited from class StructurePiece
boundingBox, CAVE_AIR, genDepth -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedScatteredFeaturePiece(StructurePieceType type, int west, int floor, int north, int width, int height, int depth, Direction direction) protectedScatteredFeaturePiece(StructurePieceType type, CompoundTag tag) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected booleanupdateAverageGroundHeight(LevelAccessor level, BoundingBox chunkBB, int offset) protected booleanupdateHeightPositionToLowestGroundHeight(LevelAccessor level, int offset) Methods inherited from class 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 type, int west, int floor, int north, int width, int height, int depth, Direction direction) -
ScatteredFeaturePiece
-
-
Method Details
-
addAdditionalSaveData
- Specified by:
addAdditionalSaveDatain classStructurePiece
-
updateAverageGroundHeight
-
updateHeightPositionToLowestGroundHeight
-