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_162571_, int p_162572_, MineshaftFeature.Type p_162573_, BoundingBox p_162574_)
MineShaftPiece(StructurePieceType p_71471_, CompoundTag p_71472_)
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
addAdditionalSaveData(ServerLevel p_162576_, CompoundTag p_162577_)
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, createChest, createChest, createDispenser, createTag, fillColumnDown, 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_162571_, int p_162572_, MineshaftFeature.Type p_162573_, BoundingBox p_162574_) -
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
- 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_)
-