Package net.minecraft.structure
Class StrongholdGenerator
java.lang.Object
net.minecraft.structure.StrongholdGenerator
public class StrongholdGenerator extends Object
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
StrongholdGenerator.ChestCorridor
static class
StrongholdGenerator.Corridor
static class
StrongholdGenerator.FiveWayCrossing
static class
StrongholdGenerator.LeftTurn
static class
StrongholdGenerator.Library
(package private) static class
StrongholdGenerator.Piece
(package private) static class
StrongholdGenerator.PieceData
static class
StrongholdGenerator.PortalRoom
static class
StrongholdGenerator.PrisonHall
static class
StrongholdGenerator.RightTurn
static class
StrongholdGenerator.SmallCorridor
static class
StrongholdGenerator.SpiralStaircase
static class
StrongholdGenerator.SquareRoom
static class
StrongholdGenerator.Stairs
static class
StrongholdGenerator.Start
(package private) static class
StrongholdGenerator.StoneBrickRandomizer
static class
StrongholdGenerator.Turn
-
Field Summary
Fields Modifier and Type Field Description private static Class<? extends StrongholdGenerator.Piece>
activePieceType
private static StrongholdGenerator.PieceData[]
ALL_PIECES
private static List<StrongholdGenerator.PieceData>
possiblePieces
private static StrongholdGenerator.StoneBrickRandomizer
STONE_BRICK_RANDOMIZER
private static int
totalWeight
-
Constructor Summary
Constructors Constructor Description StrongholdGenerator()
-
Method Summary
Modifier and Type Method Description private static boolean
checkRemainingPieces()
private static StrongholdGenerator.Piece
createPiece(Class<? extends StrongholdGenerator.Piece> pieceType, List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation, int chainLength)
static void
init()
private static StrongholdGenerator.Piece
pickPiece(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation, int chainLength)
private static StructurePiece
pieceGenerator(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation, int chainLength)
-
Field Details
-
ALL_PIECES
-
possiblePieces
-
activePieceType
-
totalWeight
private static int totalWeight -
STONE_BRICK_RANDOMIZER
-
-
Constructor Details
-
StrongholdGenerator
public StrongholdGenerator()
-
-
Method Details
-
init
public static void init() -
checkRemainingPieces
private static boolean checkRemainingPieces() -
createPiece
private static StrongholdGenerator.Piece createPiece(Class<? extends StrongholdGenerator.Piece> pieceType, List<StructurePiece> pieces, Random random, int x, int y, int z, @Nullable Direction orientation, int chainLength) -
pickPiece
private static StrongholdGenerator.Piece pickPiece(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int x, int y, int z, Direction orientation, int chainLength) -
pieceGenerator
private static StructurePiece pieceGenerator(StrongholdGenerator.Start start, List<StructurePiece> pieces, Random random, int x, int y, int z, @Nullable Direction orientation, int chainLength)
-