Class MineshaftPieces.MineShaftPiece
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces.MineShaftPiece
- Direct Known Subclasses:
MineshaftPieces.MineShaftCorridor
,MineshaftPieces.MineShaftCrossing
,MineshaftPieces.MineShaftRoom
,MineshaftPieces.MineShaftStairs
- Enclosing class:
MineshaftPieces
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
StructurePiece.BlockSelector
-
Field Summary
FieldsFields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
Constructor Summary
ConstructorsConstructorDescriptionMineShaftPiece
(StructurePieceType structurePieceType, int genDepth, MineshaftStructure.Type type, BoundingBox boundingBox) MineShaftPiece
(StructurePieceType type, CompoundTag tag) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected boolean
canBeReplaced
(LevelReader level, int x, int y, int z, BoundingBox box) protected boolean
isInInvalidLocation
(LevelAccessor level, BoundingBox boundingBox) protected boolean
isSupportingBox
(BlockGetter level, BoundingBox box, int xStart, int xEnd, int y, int z) protected void
setPlanksBlock
(WorldGenLevel level, BoundingBox box, BlockState plankState, int x, int y, int z) Methods inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
addChildren, 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
-
type
-
-
Constructor Details
-
MineShaftPiece
public MineShaftPiece(StructurePieceType structurePieceType, int genDepth, MineshaftStructure.Type type, BoundingBox boundingBox) -
MineShaftPiece
-
-
Method Details
-
canBeReplaced
- Overrides:
canBeReplaced
in classStructurePiece
-
addAdditionalSaveData
- Specified by:
addAdditionalSaveData
in classStructurePiece
-
isSupportingBox
protected boolean isSupportingBox(BlockGetter level, BoundingBox box, int xStart, int xEnd, int y, int z) -
isInInvalidLocation
-
setPlanksBlock
protected void setPlanksBlock(WorldGenLevel level, BoundingBox box, BlockState plankState, int x, int y, int z)
-