Class MineshaftPieces.MineshaftCrossing
java.lang.Object
cn.nukkit.level.generator.populator.impl.structure.utils.structure.StructurePiece
cn.nukkit.level.generator.populator.impl.structure.mineshaft.structure.MineshaftPieces.MineshaftCrossing
- 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
ConstructorDescriptionMineshaftCrossing
(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
findCrossing
(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
-
MineshaftCrossing
public MineshaftCrossing(int genDepth, BoundingBox boundingBox, @Nullable BlockFace orientation, PopulatorMineshaft.Type type) -
MineshaftCrossing
-
-
Method Details
-
getType
- Specified by:
getType
in classStructurePiece
-
addAdditionalSaveData
-
findCrossing
@Nullable public static BoundingBox findCrossing(List<StructurePiece> pieces, NukkitRandom random, int x, int y, int z, BlockFace orientation) -
addChildren
- Overrides:
addChildren
in classStructurePiece
-
postProcess
public boolean postProcess(ChunkManager level, NukkitRandom random, BoundingBox boundingBox, int chunkX, int chunkZ) - Specified by:
postProcess
in classStructurePiece
-
getPlanksBlock
-
getFenceBlock
-
isSupportingBox
protected boolean isSupportingBox(ChunkManager level, BoundingBox boundingBox, int x0, int x1, int y, int z)
-