类 MineshaftPieces.MineShaftCorridor
java.lang.Object
net.minecraft.world.level.levelgen.structure.StructurePiece
net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces.MineShaftPiece
net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces.MineShaftCorridor
- 封闭类:
- MineshaftPieces
-
嵌套类概要
从类继承的嵌套类/接口 net.minecraft.world.level.levelgen.structure.StructurePiece
StructurePiece.BlockSelector
-
字段概要
字段修饰符和类型字段说明private boolean
private final boolean
private final int
private final boolean
从类继承的字段 net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces.MineShaftPiece
type
从类继承的字段 net.minecraft.world.level.levelgen.structure.StructurePiece
boundingBox, CAVE_AIR, genDepth
-
构造器概要
构造器构造器说明MineShaftCorridor
(int pGenDepth, RandomSource pRandom, BoundingBox pBoundingBox, Direction pOrientation, MineshaftStructure.Type pType) MineShaftCorridor
(CompoundTag pTag) -
方法概要
修饰符和类型方法说明protected void
addAdditionalSaveData
(StructurePieceSerializationContext pContext, CompoundTag pTag) void
addChildren
(StructurePiece pPiece, StructurePieceAccessor pPieces, RandomSource pRandom) private boolean
canHangChainBelow
(LevelReader pLevel, BlockPos pPos, BlockState pState) private boolean
canPlaceColumnOnTopOf
(LevelReader pLevel, BlockPos pPos, BlockState pState) protected boolean
createChest
(WorldGenLevel pLevel, BoundingBox pBox, RandomSource pRandom, int pX, int pY, int pZ, ResourceLocation pLootTable) private static void
fillColumnBetween
(WorldGenLevel pLevel, BlockState pState, BlockPos.MutableBlockPos pPos, int pMinY, int pMaxY) protected void
fillColumnDown
(WorldGenLevel pLevel, BlockState pState, int pX, int pY, int pZ, BoundingBox pBox) protected void
fillPillarDownOrChainUp
(WorldGenLevel pLevel, BlockState pState, int pX, int pY, int pZ, BoundingBox pBox) static BoundingBox
findCorridorSize
(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection) private boolean
hasSturdyNeighbours
(WorldGenLevel pLevel, BoundingBox pBox, int pX, int pY, int pZ, int pRequired) private void
maybePlaceCobWeb
(WorldGenLevel pLevel, BoundingBox pBox, RandomSource pRandom, float pChance, int pX, int pY, int pZ) private void
placeDoubleLowerOrUpperSupport
(WorldGenLevel pLevel, BoundingBox pBox, int pX, int pY, int pZ) private void
placeSupport
(WorldGenLevel pLevel, BoundingBox pBox, int pMinX, int pMinY, int pZ, int pMaxY, int pMaxX, RandomSource pRandom) void
postProcess
(WorldGenLevel pLevel, StructureManager pStructureManager, ChunkGenerator pGenerator, RandomSource pRandom, BoundingBox pBox, ChunkPos pChunkPos, BlockPos pPos) 从类继承的方法 net.minecraft.world.level.levelgen.structure.structures.MineshaftPieces.MineShaftPiece
canBeReplaced, isInInvalidLocation, isSupportingBox, setPlanksBlock
从类继承的方法 net.minecraft.world.level.levelgen.structure.StructurePiece
createBoundingBox, createChest, createDispenser, createTag, 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, reorient, setGenDepth, setOrientation
-
字段详细资料
-
hasRails
private final boolean hasRails -
spiderCorridor
private final boolean spiderCorridor -
hasPlacedSpider
private boolean hasPlacedSpider -
numSections
private final int numSections
-
-
构造器详细资料
-
MineShaftCorridor
-
MineShaftCorridor
public MineShaftCorridor(int pGenDepth, RandomSource pRandom, BoundingBox pBoundingBox, Direction pOrientation, MineshaftStructure.Type pType)
-
-
方法详细资料
-
addAdditionalSaveData
-
findCorridorSize
@Nullable public static BoundingBox findCorridorSize(StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection) -
addChildren
public void addChildren(StructurePiece pPiece, StructurePieceAccessor pPieces, RandomSource pRandom) - 覆盖:
addChildren
在类中StructurePiece
-
createChest
protected boolean createChest(WorldGenLevel pLevel, BoundingBox pBox, RandomSource pRandom, int pX, int pY, int pZ, ResourceLocation pLootTable) - 覆盖:
createChest
在类中StructurePiece
-
postProcess
public void postProcess(WorldGenLevel pLevel, StructureManager pStructureManager, ChunkGenerator pGenerator, RandomSource pRandom, BoundingBox pBox, ChunkPos pChunkPos, BlockPos pPos) - 指定者:
postProcess
在类中StructurePiece
-
placeDoubleLowerOrUpperSupport
private void placeDoubleLowerOrUpperSupport(WorldGenLevel pLevel, BoundingBox pBox, int pX, int pY, int pZ) -
fillColumnDown
protected void fillColumnDown(WorldGenLevel pLevel, BlockState pState, int pX, int pY, int pZ, BoundingBox pBox) - 覆盖:
fillColumnDown
在类中StructurePiece
-
fillPillarDownOrChainUp
protected void fillPillarDownOrChainUp(WorldGenLevel pLevel, BlockState pState, int pX, int pY, int pZ, BoundingBox pBox) -
fillColumnBetween
private static void fillColumnBetween(WorldGenLevel pLevel, BlockState pState, BlockPos.MutableBlockPos pPos, int pMinY, int pMaxY) -
canPlaceColumnOnTopOf
-
canHangChainBelow
-
placeSupport
private void placeSupport(WorldGenLevel pLevel, BoundingBox pBox, int pMinX, int pMinY, int pZ, int pMaxY, int pMaxX, RandomSource pRandom) -
maybePlaceCobWeb
private void maybePlaceCobWeb(WorldGenLevel pLevel, BoundingBox pBox, RandomSource pRandom, float pChance, int pX, int pY, int pZ) -
hasSturdyNeighbours
private boolean hasSturdyNeighbours(WorldGenLevel pLevel, BoundingBox pBox, int pX, int pY, int pZ, int pRequired)
-