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 voidprotected booleancanBeReplaced(LevelReader level, int x, int y, int z, BoundingBox box) protected booleanisInInvalidLocation(LevelAccessor level, BoundingBox boundingBox) protected booleanisSupportingBox(BlockGetter level, BoundingBox box, int xStart, int xEnd, int y, int z) protected voidsetPlanksBlock(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:
canBeReplacedin classStructurePiece
-
addAdditionalSaveData
- Specified by:
addAdditionalSaveDatain 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)
-