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
Fields inherited from class net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
Constructor Summary
ConstructorDescriptionMineShaftPiece
(StructurePieceType p_227867_, int p_227868_, MineshaftStructure.Type p_227869_, BoundingBox p_227870_) MineShaftPiece
(StructurePieceType p_227872_, CompoundTag p_227873_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData
(StructurePieceSerializationContext p_227898_, CompoundTag p_227899_) protected boolean
canBeReplaced
(LevelReader p_227885_, int p_227886_, int p_227887_, int p_227888_, BoundingBox p_227889_) protected boolean
isInInvalidLocation
(LevelAccessor p_227882_, BoundingBox p_227883_) protected boolean
isSupportingBox
(BlockGetter p_227875_, BoundingBox p_227876_, int p_227877_, int p_227878_, int p_227879_, int p_227880_) protected void
setPlanksBlock
(WorldGenLevel p_227891_, BoundingBox p_227892_, BlockState p_227893_, int p_227894_, int p_227895_, int p_227896_) 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 p_227867_, int p_227868_, MineshaftStructure.Type p_227869_, BoundingBox p_227870_) -
MineShaftPiece
-
-
Method Details
-
canBeReplaced
protected boolean canBeReplaced(LevelReader p_227885_, int p_227886_, int p_227887_, int p_227888_, BoundingBox p_227889_) - Overrides:
canBeReplaced
in classStructurePiece
-
addAdditionalSaveData
protected void addAdditionalSaveData(StructurePieceSerializationContext p_227898_, CompoundTag p_227899_) - Specified by:
addAdditionalSaveData
in classStructurePiece
-
isSupportingBox
protected boolean isSupportingBox(BlockGetter p_227875_, BoundingBox p_227876_, int p_227877_, int p_227878_, int p_227879_, int p_227880_) -
isInInvalidLocation
-
setPlanksBlock
protected void setPlanksBlock(WorldGenLevel p_227891_, BoundingBox p_227892_, BlockState p_227893_, int p_227894_, int p_227895_, int p_227896_)
-