Class StrongholdPieces
java.lang.Object
net.minecraft.world.level.levelgen.structure.StrongholdPieces
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
static class
static class
static class
(package private) static class
static class
static class
static class
static class
(package private) static class
static class
static class
static class
static class
(package private) static class
static class
-
Field Summary
Modifier and TypeFieldDescriptionprivate static boolean
private static List<StrongholdPieces.PieceWeight>
(package private) static Class<? extends StrongholdPieces.StrongholdPiece>
private static int
private static int
private static int
private static int
(package private) static StrongholdPieces.SmoothStoneSelector
private static StrongholdPieces.PieceWeight[]
private static int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static StrongholdPieces.StrongholdPiece
findAndCreatePieceFactory(Class<? extends StrongholdPieces.StrongholdPiece> p_163234_, StructurePieceAccessor p_163235_, Random p_163236_, int p_163237_, int p_163238_, int p_163239_, Direction p_163240_, int p_163241_)
(package private) static StructurePiece
generateAndAddPiece(StrongholdPieces.StartPiece p_163243_, StructurePieceAccessor p_163244_, Random p_163245_, int p_163246_, int p_163247_, int p_163248_, Direction p_163249_, int p_163250_)
private static StrongholdPieces.StrongholdPiece
generatePieceFromSmallDoor(StrongholdPieces.StartPiece p_163225_, StructurePieceAccessor p_163226_, Random p_163227_, int p_163228_, int p_163229_, int p_163230_, Direction p_163231_, int p_163232_)
static void
private static boolean
-
Field Details
-
SMALL_DOOR_WIDTH
private static final int SMALL_DOOR_WIDTH- See Also:
- Constant Field Values
-
SMALL_DOOR_HEIGHT
private static final int SMALL_DOOR_HEIGHT- See Also:
- Constant Field Values
-
MAX_DEPTH
private static final int MAX_DEPTH- See Also:
- Constant Field Values
-
LOWEST_Y_POSITION
private static final int LOWEST_Y_POSITION- See Also:
- Constant Field Values
-
CHECK_AIR
private static final boolean CHECK_AIR- See Also:
- Constant Field Values
-
STRONGHOLD_PIECE_WEIGHTS
-
currentPieces
-
imposedPiece
-
totalWeight
private static int totalWeight -
SMOOTH_STONE_SELECTOR
-
-
Constructor Details
-
StrongholdPieces
public StrongholdPieces()
-
-
Method Details
-
resetPieces
public static void resetPieces() -
updatePieceWeight
private static boolean updatePieceWeight() -
findAndCreatePieceFactory
private static StrongholdPieces.StrongholdPiece findAndCreatePieceFactory(Class<? extends StrongholdPieces.StrongholdPiece> p_163234_, StructurePieceAccessor p_163235_, Random p_163236_, int p_163237_, int p_163238_, int p_163239_, @Nullable Direction p_163240_, int p_163241_) -
generatePieceFromSmallDoor
private static StrongholdPieces.StrongholdPiece generatePieceFromSmallDoor(StrongholdPieces.StartPiece p_163225_, StructurePieceAccessor p_163226_, Random p_163227_, int p_163228_, int p_163229_, int p_163230_, Direction p_163231_, int p_163232_) -
generateAndAddPiece
static StructurePiece generateAndAddPiece(StrongholdPieces.StartPiece p_163243_, StructurePieceAccessor p_163244_, Random p_163245_, int p_163246_, int p_163247_, int p_163248_, @Nullable Direction p_163249_, int p_163250_)
-