类 MineshaftPieces.MineShaftPiece
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces.MineShaftPiece
- 直接已知子类:
MineshaftPieces.MineShaftCorridor
,MineshaftPieces.MineShaftCrossing
,MineshaftPieces.MineShaftRoom
,MineshaftPieces.MineShaftStairs
- 封闭类:
- MineshaftPieces
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.levelgen.structure.StructurePiece
StructurePiece.BlockSelector
-
字段概要
字段从类继承的字段 net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
构造器概要
构造器构造器说明MineShaftPiece
(StructurePieceType pStructurePieceType, int pGenDepth, MineshaftStructure.Type pType, BoundingBox pBoundingBox) MineShaftPiece
(StructurePieceType pType, CompoundTag pTag) -
方法概要
修饰符和类型方法说明protected void
addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected boolean
canBeReplaced
(LevelReader pLevel, int pX, int pY, int pZ, BoundingBox pBox) protected boolean
isInInvalidLocation
(LevelAccessor pLevel, BoundingBox pBoundingBox) protected boolean
isSupportingBox
(BlockGetter pLevel, BoundingBox pBox, int pXStart, int pXEnd, int pY, int pZ) protected void
setPlanksBlock
(WorldGenLevel pLevel, BoundingBox pBox, BlockState pPlankState, int pX, int pY, int pZ) 从类继承的方法 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
-
字段详细资料
-
type
-
-
构造器详细资料
-
MineShaftPiece
public MineShaftPiece(StructurePieceType pStructurePieceType, int pGenDepth, MineshaftStructure.Type pType, BoundingBox pBoundingBox) -
MineShaftPiece
-
-
方法详细资料
-
canBeReplaced
- 覆盖:
canBeReplaced
在类中StructurePiece
-
addAdditionalSaveData
- 指定者:
addAdditionalSaveData
在类中StructurePiece
-
isSupportingBox
protected boolean isSupportingBox(BlockGetter pLevel, BoundingBox pBox, int pXStart, int pXEnd, int pY, int pZ) -
isInInvalidLocation
-
setPlanksBlock
protected void setPlanksBlock(WorldGenLevel pLevel, BoundingBox pBox, BlockState pPlankState, int pX, int pY, int pZ)
-