Package net.minecraft.structure
Class StrongholdGenerator.SmallCorridor
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.StrongholdGenerator.Piece
net.minecraft.structure.StrongholdGenerator.SmallCorridor
- Enclosing class:
- StrongholdGenerator
public static class StrongholdGenerator.SmallCorridor extends StrongholdGenerator.Piece
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.structure.StrongholdGenerator.Piece
StrongholdGenerator.Piece.EntranceTypeNested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer -
Field Summary
Fields Modifier and Type Field Description private intlengthFields inherited from class net.minecraft.structure.StrongholdGenerator.Piece
entryDoorFields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength -
Constructor Summary
Constructors Constructor Description SmallCorridor(int chainLength, BlockBox boundingBox, Direction orientation)SmallCorridor(StructureManager structureManager, CompoundTag compoundTag) -
Method Summary
Modifier and Type Method Description static BlockBoxcreate(List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation)booleangenerate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)protected voidtoNbt(CompoundTag tag)Methods inherited from class net.minecraft.structure.StrongholdGenerator.Piece
fillForwardOpening, fillNWOpening, fillSEOpening, generateEntrance, getRandomEntrance, isInboundsMethods inherited from class net.minecraft.structure.StructurePiece
addBlock, addBlockWithRandomThreshold, addChest, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, fill, fillDownwards, fillHalfEllipsoid, fillOpenings, fillWithOutline, fillWithOutline, fillWithOutlineUnderSeaLevel, getBlockAt, getBoundingBox, getChainLength, getFacing, getOverlappingPiece, getRotation, getTag, getType, intersectsChunk, isTouchingLiquid, isUnderSeaLevel, orientateChest, setOrientation, translate
-
Field Details
-
length
private final int length
-
-
Constructor Details
-
SmallCorridor
-
SmallCorridor
-
-
Method Details
-
toNbt
- Overrides:
toNbtin classStrongholdGenerator.Piece
-
create
public static BlockBox create(List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation) -
generate
public boolean generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)- Specified by:
generatein classStructurePiece
-