Package net.minecraft.structure
Class StrongholdGenerator.SpiralStaircase
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.StrongholdGenerator.Piece
net.minecraft.structure.StrongholdGenerator.SpiralStaircase
- Direct Known Subclasses:
StrongholdGenerator.Start
- Enclosing class:
- StrongholdGenerator
public static class StrongholdGenerator.SpiralStaircase 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 booleanisStructureStartFields inherited from class net.minecraft.structure.StrongholdGenerator.Piece
entryDoorFields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength -
Constructor Summary
Constructors Constructor Description SpiralStaircase(int chainLength, Random random, BlockBox boundingBox, Direction orientation)SpiralStaircase(StructureManager structureManager, CompoundTag compoundTag)SpiralStaircase(StructurePieceType structurePieceType, int chainLength, Random random, int x, int z)SpiralStaircase(StructurePieceType type, CompoundTag tag) -
Method Summary
Modifier and Type Method Description static StrongholdGenerator.SpiralStaircasecreate(List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation, int chainLength)voidfillOpenings(StructurePiece start, List<StructurePiece> pieces, Random random)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, fillWithOutline, fillWithOutline, fillWithOutlineUnderSeaLevel, getBlockAt, getBoundingBox, getChainLength, getFacing, getOverlappingPiece, getRotation, getTag, getType, intersectsChunk, isTouchingLiquid, isUnderSeaLevel, orientateChest, setOrientation, translate
-
Field Details
-
isStructureStart
private final boolean isStructureStart
-
-
Constructor Details
-
SpiralStaircase
public SpiralStaircase(StructurePieceType structurePieceType, int chainLength, Random random, int x, int z) -
SpiralStaircase
-
SpiralStaircase
-
SpiralStaircase
-
-
Method Details
-
toNbt
- Overrides:
toNbtin classStrongholdGenerator.Piece
-
fillOpenings
- Overrides:
fillOpeningsin classStructurePiece
-
create
public static StrongholdGenerator.SpiralStaircase create(List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation, int chainLength) -
generate
public boolean generate(StructureWorldAccess structureWorldAccess, StructureAccessor structureAccessor, ChunkGenerator chunkGenerator, Random random, BlockBox boundingBox, ChunkPos chunkPos, BlockPos blockPos)- Specified by:
generatein classStructurePiece
-