Class MineShaftPieces.MineShaftPiece
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.world.level.levelgen.structure.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_209876_, int p_209877_, MineshaftFeature.Type p_209878_, BoundingBox p_209879_) MineShaftPiece
(StructurePieceType p_209881_, CompoundTag p_209882_) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData
(StructurePieceSerializationContext p_192054_, CompoundTag p_192055_) protected boolean
canBeReplaced
(LevelReader p_162582_, int p_162583_, int p_162584_, int p_162585_, BoundingBox p_162586_) protected boolean
edgesLiquid
(BlockGetter p_162579_, BoundingBox p_162580_) protected boolean
isSupportingBox
(BlockGetter p_71475_, BoundingBox p_71476_, int p_71477_, int p_71478_, int p_71479_, int p_71480_) protected void
setPlanksBlock
(WorldGenLevel p_162588_, BoundingBox p_162589_, BlockState p_162590_, int p_162591_, int p_162592_, int p_162593_) 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, getNoiseEffect, getOrientation, getRandomHorizontalDirection, getRotation, getType, getWorldPos, getWorldX, getWorldY, getWorldZ, isCloseToChunk, isInterior, isReplaceableByStructures, makeBoundingBox, maybeGenerateBlock, move, placeBlock, postProcess, reorient, setOrientation
-
Field Details
-
type
-
-
Constructor Details
-
MineShaftPiece
public MineShaftPiece(StructurePieceType p_209876_, int p_209877_, MineshaftFeature.Type p_209878_, BoundingBox p_209879_) -
MineShaftPiece
-
-
Method Details
-
canBeReplaced
protected boolean canBeReplaced(LevelReader p_162582_, int p_162583_, int p_162584_, int p_162585_, BoundingBox p_162586_) - Overrides:
canBeReplaced
in classStructurePiece
-
addAdditionalSaveData
protected void addAdditionalSaveData(StructurePieceSerializationContext p_192054_, CompoundTag p_192055_) - Specified by:
addAdditionalSaveData
in classStructurePiece
-
isSupportingBox
protected boolean isSupportingBox(BlockGetter p_71475_, BoundingBox p_71476_, int p_71477_, int p_71478_, int p_71479_, int p_71480_) -
edgesLiquid
-
setPlanksBlock
protected void setPlanksBlock(WorldGenLevel p_162588_, BoundingBox p_162589_, BlockState p_162590_, int p_162591_, int p_162592_, int p_162593_)
-