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 int
protected final int
protected int
protected final int
Fields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotected
ScatteredFeaturePiece
(StructurePieceType type, int x, int y, int z, int width, int height, int depth, Direction orientation) protected
ScatteredFeaturePiece
(StructurePieceType type, CompoundTag tag) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected boolean
updateAverageGroundHeight
(LevelAccessor level, BoundingBox bounds, int height) protected boolean
updateHeightPositionToLowestGroundHeight
(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:
addAdditionalSaveData
in classStructurePiece
-
updateAverageGroundHeight
-
updateHeightPositionToLowestGroundHeight
-