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 type, int x, int y, int z, int width, int height, int depth, Direction orientation) protectedScatteredFeaturePiece(StructurePieceType type, CompoundTag tag) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprotected booleanupdateAverageGroundHeight(LevelAccessor level, BoundingBox bounds, int height) protected booleanupdateHeightPositionToLowestGroundHeight(LevelAccessor level, int height) 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 type, int x, int y, int z, int width, int height, int depth, Direction orientation) -
ScatteredFeaturePiece
-
-
Method Details
-
addAdditionalSaveData
- Specified by:
addAdditionalSaveDatain classStructurePiece
-
updateAverageGroundHeight
-
updateHeightPositionToLowestGroundHeight
-