类 ScatteredFeaturePiece
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.world.level.levelgen.structure.ScatteredFeaturePiece
- 直接已知子类:
DesertPyramidPiece
,JungleTemplePiece
,SwampHutPiece
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.levelgen.structure.StructurePiece
StructurePiece.BlockSelector
-
字段概要
字段修饰符和类型字段说明protected final int
protected final int
protected int
protected final int
从类继承的字段 net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
构造器概要
构造器限定符构造器说明protected
ScatteredFeaturePiece
(StructurePieceType pType, int pX, int pY, int pZ, int pWidth, int pHeight, int pDepth, Direction pOrientation) protected
ScatteredFeaturePiece
(StructurePieceType pType, CompoundTag pTag) -
方法概要
修饰符和类型方法说明protected void
addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) protected boolean
updateAverageGroundHeight
(LevelAccessor pLevel, BoundingBox pBounds, int pHeight) protected boolean
updateHeightPositionToLowestGroundHeight
(LevelAccessor pLevel, int pHeight) 从类继承的方法 net.minecraft.world.level.levelgen.structure.StructurePiece
addChildren, canBeReplaced, 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
-
字段详细资料
-
width
protected final int width -
height
protected final int height -
depth
protected final int depth -
heightPosition
protected int heightPosition
-
-
构造器详细资料
-
ScatteredFeaturePiece
protected ScatteredFeaturePiece(StructurePieceType pType, int pX, int pY, int pZ, int pWidth, int pHeight, int pDepth, Direction pOrientation) -
ScatteredFeaturePiece
-
-
方法详细资料
-
addAdditionalSaveData
- 指定者:
addAdditionalSaveData
在类中StructurePiece
-
updateAverageGroundHeight
-
updateHeightPositionToLowestGroundHeight
-