abstract static class StrongholdGenerator.Piece extends StructurePiece
| Modifier and Type | Class and Description |
|---|---|
static class |
StrongholdGenerator.Piece.EntranceType |
StructurePiece.BlockRandomizer| Modifier and Type | Field and Description |
|---|---|
protected StrongholdGenerator.Piece.EntranceType |
entryDoor |
AIR, boundingBox, chainLength| Modifier | Constructor and Description |
|---|---|
|
Piece(StructurePieceType type,
CompoundTag tag) |
protected |
Piece(StructurePieceType type,
int length) |
| Modifier and Type | Method and 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) |
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, translateprotected StrongholdGenerator.Piece.EntranceType entryDoor
protected Piece(StructurePieceType type, int length)
public Piece(StructurePieceType type, CompoundTag tag)
protected void toNbt(CompoundTag tag)
toNbt in class StructurePieceprotected 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)
@Nullable protected StructurePiece fillForwardOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int leftRightOffset, int heightOffset)
@Nullable protected StructurePiece fillNWOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset)
@Nullable protected StructurePiece fillSEOpening(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset)
protected static boolean isInbounds(BlockBox boundingBox)