Class DesertPyramidPiece
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.world.level.levelgen.structure.ScatteredFeaturePiece
net.minecraft.world.level.levelgen.structure.structures.DesertPyramidPiece
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
StructurePiece.BlockSelector
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
private final boolean[]
private BlockPos
static final int
Fields inherited from class net.minecraft.world.level.levelgen.structure.ScatteredFeaturePiece
depth, height, heightPosition, width
Fields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
Constructor Summary
ConstructorDescriptionDesertPyramidPiece
(CompoundTag p_227403_) DesertPyramidPiece
(RandomSource p_227399_, int p_227400_, int p_227401_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData
(StructurePieceSerializationContext p_227413_, CompoundTag p_227414_) private void
addCellar
(WorldGenLevel p_272769_, BoundingBox p_273155_) private void
addCellarRoom
(BlockPos p_272733_, WorldGenLevel p_273390_, BoundingBox p_273517_) private void
addCellarStairs
(BlockPos p_272997_, WorldGenLevel p_272699_, BoundingBox p_273559_) private void
placeCollapsedRoof
(WorldGenLevel p_273438_, BoundingBox p_273058_, int p_272638_, int p_272826_, int p_273026_, int p_272750_, int p_272639_) private void
placeCollapsedRoofPiece
(WorldGenLevel p_272965_, int p_272618_, int p_273415_, int p_273110_, BoundingBox p_272645_) private void
placeSand
(int p_279401_, int p_279451_, int p_279265_) private void
placeSandBox
(int p_279483_, int p_279321_, int p_279271_, int p_279471_, int p_279229_, int p_279111_) void
postProcess
(WorldGenLevel p_227405_, StructureManager p_227406_, ChunkGenerator p_227407_, RandomSource p_227408_, BoundingBox p_227409_, ChunkPos p_227410_, BlockPos p_227411_) Methods inherited from class net.minecraft.world.level.levelgen.structure.ScatteredFeaturePiece
updateAverageGroundHeight, updateHeightPositionToLowestGroundHeight
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, reorient, setGenDepth, setOrientation
-
Field Details
-
WIDTH
public static final int WIDTH- See Also:
-
DEPTH
public static final int DEPTH- See Also:
-
hasPlacedChest
private final boolean[] hasPlacedChest -
potentialSuspiciousSandWorldPositions
-
randomCollapsedRoofPos
-
-
Constructor Details
-
DesertPyramidPiece
-
DesertPyramidPiece
-
-
Method Details
-
addAdditionalSaveData
protected void addAdditionalSaveData(StructurePieceSerializationContext p_227413_, CompoundTag p_227414_) - Overrides:
addAdditionalSaveData
in classScatteredFeaturePiece
-
postProcess
public void postProcess(WorldGenLevel p_227405_, StructureManager p_227406_, ChunkGenerator p_227407_, RandomSource p_227408_, BoundingBox p_227409_, ChunkPos p_227410_, BlockPos p_227411_) - Specified by:
postProcess
in classStructurePiece
-
addCellar
-
addCellarStairs
-
addCellarRoom
-
placeSand
private void placeSand(int p_279401_, int p_279451_, int p_279265_) -
placeSandBox
private void placeSandBox(int p_279483_, int p_279321_, int p_279271_, int p_279471_, int p_279229_, int p_279111_) -
placeCollapsedRoofPiece
private void placeCollapsedRoofPiece(WorldGenLevel p_272965_, int p_272618_, int p_273415_, int p_273110_, BoundingBox p_272645_) -
placeCollapsedRoof
private void placeCollapsedRoof(WorldGenLevel p_273438_, BoundingBox p_273058_, int p_272638_, int p_272826_, int p_273026_, int p_272750_, int p_272639_) -
getPotentialSuspiciousSandWorldPositions
-
getRandomCollapsedRoofPos
-