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
Modifier 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
ModifierConstructorDescriptionprotected
ScatteredFeaturePiece
(StructurePieceType p_209920_, int p_209921_, int p_209922_, int p_209923_, int p_209924_, int p_209925_, int p_209926_, Direction p_209927_) protected
ScatteredFeaturePiece
(StructurePieceType p_209929_, CompoundTag p_209930_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData
(StructurePieceSerializationContext p_192471_, CompoundTag p_192472_) protected boolean
updateAverageGroundHeight
(LevelAccessor p_72804_, BoundingBox p_72805_, int p_72806_) protected boolean
updateHeightPositionToLowestGroundHeight
(LevelAccessor p_192468_, int p_192469_) 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 p_209920_, int p_209921_, int p_209922_, int p_209923_, int p_209924_, int p_209925_, int p_209926_, Direction p_209927_) -
ScatteredFeaturePiece
-
-
Method Details
-
addAdditionalSaveData
protected void addAdditionalSaveData(StructurePieceSerializationContext p_192471_, CompoundTag p_192472_) - Specified by:
addAdditionalSaveData
in classStructurePiece
-
updateAverageGroundHeight
protected boolean updateAverageGroundHeight(LevelAccessor p_72804_, BoundingBox p_72805_, int p_72806_) -
updateHeightPositionToLowestGroundHeight
-