abstract static class NetherFortressGenerator.Piece extends StructurePiece
StructurePiece.BlockRandomizer
AIR, boundingBox, chainLength
Modifier | Constructor and Description |
---|---|
|
Piece(StructurePieceType type,
CompoundTag tag) |
protected |
Piece(StructurePieceType type,
int length) |
Modifier and Type | Method and Description |
---|---|
private int |
checkRemainingPieces(List<NetherFortressGenerator.PieceData> possiblePieces) |
protected StructurePiece |
fillForwardOpening(NetherFortressGenerator.Start start,
List<StructurePiece> pieces,
Random random,
int leftRightOffset,
int heightOffset,
boolean inside) |
protected StructurePiece |
fillNWOpening(NetherFortressGenerator.Start start,
List<StructurePiece> pieces,
Random random,
int heightOffset,
int leftRightOffset,
boolean inside) |
protected StructurePiece |
fillSEOpening(NetherFortressGenerator.Start start,
List<StructurePiece> pieces,
Random random,
int heightOffset,
int leftRightOffset,
boolean inside) |
protected static boolean |
isInbounds(BlockBox boundingBox) |
private NetherFortressGenerator.Piece |
pickPiece(NetherFortressGenerator.Start start,
List<NetherFortressGenerator.PieceData> possiblePieces,
List<StructurePiece> pieces,
Random random,
int x,
int y,
int z,
Direction orientation,
int chainLength) |
private StructurePiece |
pieceGenerator(NetherFortressGenerator.Start start,
List<StructurePiece> pieces,
Random random,
int x,
int y,
int z,
Direction orientation,
int chainLength,
boolean inside) |
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, translate
protected Piece(StructurePieceType type, int length)
public Piece(StructurePieceType type, CompoundTag tag)
protected void toNbt(CompoundTag tag)
toNbt
in class StructurePiece
private int checkRemainingPieces(List<NetherFortressGenerator.PieceData> possiblePieces)
private NetherFortressGenerator.Piece pickPiece(NetherFortressGenerator.Start start, List<NetherFortressGenerator.PieceData> possiblePieces, List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation, int chainLength)
private StructurePiece pieceGenerator(NetherFortressGenerator.Start start, List<StructurePiece> pieces, Random random, int x, int y, int z, @Nullable Direction orientation, int chainLength, boolean inside)
@Nullable protected StructurePiece fillForwardOpening(NetherFortressGenerator.Start start, List<StructurePiece> pieces, Random random, int leftRightOffset, int heightOffset, boolean inside)
@Nullable protected StructurePiece fillNWOpening(NetherFortressGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset, boolean inside)
@Nullable protected StructurePiece fillSEOpening(NetherFortressGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset, boolean inside)
protected static boolean isInbounds(BlockBox boundingBox)