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 StructurePiece
StructurePiece.BlockSelector -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intprivate final boolean[]private BlockPosstatic final intFields inherited from class ScatteredFeaturePiece
depth, height, heightPosition, widthFields inherited from class StructurePiece
boundingBox, CAVE_AIR, genDepth -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidprivate voidaddCellar(WorldGenLevel level, BoundingBox chunkBB) private voidaddCellarRoom(BlockPos roomCenter, WorldGenLevel level, BoundingBox chunkBB) private voidaddCellarStairs(BlockPos roomCenter, WorldGenLevel level, BoundingBox chunkBB) private voidplaceCollapsedRoof(WorldGenLevel level, BoundingBox chunkBB, int x0, int y0, int z0, int x1, int z1) private voidplaceCollapsedRoofPiece(WorldGenLevel level, int x, int y, int z, BoundingBox chunkBB) private voidplaceSand(int x, int y, int z) private voidplaceSandBox(int x0, int y0, int z0, int x1, int y1, int z1) voidpostProcess(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox chunkBB, ChunkPos chunkPos, BlockPos referencePos) Methods inherited from class ScatteredFeaturePiece
updateAverageGroundHeight, updateHeightPositionToLowestGroundHeightMethods 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, 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
- Overrides:
addAdditionalSaveDatain classScatteredFeaturePiece
-
postProcess
public void postProcess(WorldGenLevel level, StructureManager structureManager, ChunkGenerator generator, RandomSource random, BoundingBox chunkBB, ChunkPos chunkPos, BlockPos referencePos) - Specified by:
postProcessin classStructurePiece
-
addCellar
-
addCellarStairs
-
addCellarRoom
-
placeSand
private void placeSand(int x, int y, int z) -
placeSandBox
private void placeSandBox(int x0, int y0, int z0, int x1, int y1, int z1) -
placeCollapsedRoofPiece
-
placeCollapsedRoof
private void placeCollapsedRoof(WorldGenLevel level, BoundingBox chunkBB, int x0, int y0, int z0, int x1, int z1) -
getPotentialSuspiciousSandWorldPositions
-
getRandomCollapsedRoofPos
-