Package net.minecraft.structure
Class NetherFortressGenerator.Piece
java.lang.Object
net.minecraft.structure.StructurePiece
net.minecraft.structure.NetherFortressGenerator.Piece
- Direct Known Subclasses:
NetherFortressGenerator.Bridge,NetherFortressGenerator.BridgeCrossing,NetherFortressGenerator.BridgeEnd,NetherFortressGenerator.BridgePlatform,NetherFortressGenerator.BridgeSmallCrossing,NetherFortressGenerator.BridgeStairs,NetherFortressGenerator.CorridorBalcony,NetherFortressGenerator.CorridorCrossing,NetherFortressGenerator.CorridorExit,NetherFortressGenerator.CorridorLeftTurn,NetherFortressGenerator.CorridorNetherWartsRoom,NetherFortressGenerator.CorridorRightTurn,NetherFortressGenerator.CorridorStairs,NetherFortressGenerator.SmallCorridor
- Enclosing class:
- NetherFortressGenerator
abstract static class NetherFortressGenerator.Piece extends StructurePiece
-
Nested Class Summary
Nested classes/interfaces inherited from class net.minecraft.structure.StructurePiece
StructurePiece.BlockRandomizer -
Field Summary
Fields 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 private intcheckRemainingPieces(List<NetherFortressGenerator.PieceData> possiblePieces)protected StructurePiecefillForwardOpening(NetherFortressGenerator.Start start, List<StructurePiece> pieces, Random random, int leftRightOffset, int heightOffset, boolean inside)protected StructurePiecefillNWOpening(NetherFortressGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset, boolean inside)protected StructurePiecefillSEOpening(NetherFortressGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset, boolean inside)protected static booleanisInbounds(BlockBox boundingBox)private NetherFortressGenerator.PiecepickPiece(NetherFortressGenerator.Start start, List<NetherFortressGenerator.PieceData> possiblePieces, List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation, int chainLength)private StructurePiecepieceGenerator(NetherFortressGenerator.Start start, List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation, int chainLength, boolean inside)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
-
Constructor Details
-
Piece
-
Piece
-
-
Method Details
-
toNbt
- Specified by:
toNbtin classStructurePiece
-
checkRemainingPieces
-
pickPiece
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) -
pieceGenerator
private StructurePiece pieceGenerator(NetherFortressGenerator.Start start, List<StructurePiece> pieces, Random random, int x, int y, int z, @Nullable Direction orientation, int chainLength, boolean inside) -
fillForwardOpening
@Nullable protected StructurePiece fillForwardOpening(NetherFortressGenerator.Start start, List<StructurePiece> pieces, Random random, int leftRightOffset, int heightOffset, boolean inside) -
fillNWOpening
@Nullable protected StructurePiece fillNWOpening(NetherFortressGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset, boolean inside) -
fillSEOpening
@Nullable protected StructurePiece fillSEOpening(NetherFortressGenerator.Start start, List<StructurePiece> pieces, Random random, int heightOffset, int leftRightOffset, boolean inside) -
isInbounds
-