Class MineshaftPieces.MineshaftStairs
java.lang.Object
cn.nukkit.level.generator.populator.impl.structure.utils.structure.StructurePiece
cn.nukkit.level.generator.populator.impl.structure.mineshaft.structure.MineshaftPieces.MineshaftStairs
- Enclosing class:
- MineshaftPieces
-
Nested Class Summary
Nested classes/interfaces inherited from class cn.nukkit.level.generator.populator.impl.structure.utils.structure.StructurePiece
StructurePiece.BlockSelector
-
Field Summary
Fields inherited from class cn.nukkit.level.generator.populator.impl.structure.utils.structure.StructurePiece
boundingBox, genDepth, level
-
Constructor Summary
ConstructorDescriptionMineshaftStairs
(int genDepth, BoundingBox boundingBox, BlockFace orientation, PopulatorMineshaft.Type type) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
void
addChildren
(StructurePiece piece, List<StructurePiece> pieces, NukkitRandom random) static BoundingBox
findStairs
(List<StructurePiece> pieces, NukkitRandom random, int x, int y, int z, BlockFace orientation) protected BlockState
protected BlockState
getType()
protected boolean
isSupportingBox
(ChunkManager level, BoundingBox boundingBox, int x0, int x1, int y, int z) boolean
postProcess
(ChunkManager level, NukkitRandom random, BoundingBox boundingBox, int chunkX, int chunkZ) Methods inherited from class cn.nukkit.level.generator.populator.impl.structure.utils.structure.StructurePiece
createTag, edgesLiquid, fillAirColumnUp, fillColumnDown, findCollisionPiece, generateAirBox, generateBox, generateBox, generateDoor, generateMaybeBox, generateUpperHalfSphere, getBlock, getBoundingBox, getGenDepth, getOrientation, getRotation, getWorldX, getWorldY, getWorldZ, isInterior, isLiquid, maybeGenerateBlock, move, placeBlock, setOrientation
-
Field Details
-
type
-
-
Constructor Details
-
MineshaftStairs
public MineshaftStairs(int genDepth, BoundingBox boundingBox, BlockFace orientation, PopulatorMineshaft.Type type) -
MineshaftStairs
-
-
Method Details
-
findStairs
@Nullable public static BoundingBox findStairs(List<StructurePiece> pieces, NukkitRandom random, int x, int y, int z, BlockFace orientation) -
getType
- Specified by:
getType
in classStructurePiece
-
addChildren
- Overrides:
addChildren
in classStructurePiece
-
postProcess
public boolean postProcess(ChunkManager level, NukkitRandom random, BoundingBox boundingBox, int chunkX, int chunkZ) - Specified by:
postProcess
in classStructurePiece
-
addAdditionalSaveData
- Specified by:
addAdditionalSaveData
in classStructurePiece
-
getPlanksBlock
-
getFenceBlock
-
isSupportingBox
protected boolean isSupportingBox(ChunkManager level, BoundingBox boundingBox, int x0, int x1, int y, int z)
-