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 class
StrongholdGenerator.Piece.EntranceType
Nested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer
-
Field Summary
Fields Modifier and Type Field Description protected StrongholdGenerator.Piece.EntranceType
entryDoor
Fields inherited from class net.minecraft.structure.StructurePiece
AIR, boundingBox, chainLength
-
Constructor Summary
Constructors Modifier Constructor Description protected
Piece(StructurePieceType type, int length)
Piece(StructurePieceType type, CompoundTag tag)
-
Method Summary
Modifier and Type Method Description protected StructurePiece
fillForwardOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int leftRightOffset, int heightOffset)
protected StructurePiece
fillNWOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset)
protected StructurePiece
fillSEOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset)
protected void
generateEntrance(StructureWorldAccess structureWorldAccess, Random random, BlockBox boundingBox, StrongholdGenerator.Piece.EntranceType type, int x, int y, int z)
protected StrongholdGenerator.Piece.EntranceType
getRandomEntrance(Random random)
protected static boolean
isInbounds(BlockBox boundingBox)
protected void
toNbt(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:
toNbt
in 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
-