Package net.minecraft.structure
Class StrongholdGenerator.Piece
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.StrongholdGenerator.Piece
- Direct Known Subclasses:
StrongholdGenerator.ChestCorridor,StrongholdGenerator.Corridor,StrongholdGenerator.FiveWayCrossing,StrongholdGenerator.Library,StrongholdGenerator.PortalRoom,StrongholdGenerator.PrisonHall,StrongholdGenerator.SmallCorridor,StrongholdGenerator.SpiralStaircase,StrongholdGenerator.SquareRoom,StrongholdGenerator.Stairs,StrongholdGenerator.Turn
- Enclosing class:
- StrongholdGenerator
abstract static class StrongholdGenerator.Piece extends StructurePiece
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classStrongholdGenerator.Piece.EntranceTypeNested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer -
Field Summary
Fields Modifier and Type Field Description protected StrongholdGenerator.Piece.EntranceTypeentryDoorFields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength -
Constructor Summary
Constructors Modifier Constructor Description protectedPiece(StructurePieceType type, int length)Piece(StructurePieceType type, CompoundTag tag) -
Method Summary
Modifier and Type Method Description protected StructurePiecefillForwardOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int leftRightOffset, int heightOffset)protected StructurePiecefillNWOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset)protected StructurePiecefillSEOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset)protected voidgenerateEntrance(StructureWorldAccess structureWorldAccess, Random random, BlockBox boundingBox, StrongholdGenerator.Piece.EntranceType type, int x, int y, int z)protected StrongholdGenerator.Piece.EntranceTypegetRandomEntrance(Random random)protected static booleanisInbounds(BlockBox boundingBox)protected voidtoNbt(CompoundTag tag)Methods inherited from class net.minecraft.structure.StructurePiece
addBlock, addBlockWithRandomThreshold, addChest, addChest, addDispenser, applyXTransform, applyYTransform, applyZTransform, fill, fillDownwards, fillHalfEllipsoid, fillOpenings, fillWithOutline, fillWithOutline, fillWithOutlineUnderSeaLevel, generate, getBlockAt, getBoundingBox, getChainLength, getFacing, getOverlappingPiece, getRotation, getTag, getType, intersectsChunk, isTouchingLiquid, isUnderSeaLevel, orientateChest, setOrientation, translate
-
Field Details
-
entryDoor
-
-
Constructor Details
-
Piece
-
Piece
-
-
Method Details
-
toNbt
- Specified by:
toNbtin classStructurePiece
-
generateEntrance
protected void generateEntrance(StructureWorldAccess structureWorldAccess, Random random, BlockBox boundingBox, StrongholdGenerator.Piece.EntranceType type, int x, int y, int z) -
getRandomEntrance
-
fillForwardOpening
@Nullable protected StructurePiece fillForwardOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int leftRightOffset, int heightOffset) -
fillNWOpening
@Nullable protected StructurePiece fillNWOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset) -
fillSEOpening
@Nullable protected StructurePiece fillSEOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset) -
isInbounds
-