Class StrongholdPieces
java.lang.Object
net.minecraft.world.level.levelgen.structure.structures.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 final boolean
private static List<StrongholdPieces.PieceWeight>
(package private) static Class<? extends StrongholdPieces.StrongholdPiece>
private static final int
static final int
private static final int
private static final int
private static final int
(package private) static final StrongholdPieces.SmoothStoneSelector
private static final StrongholdPieces.PieceWeight[]
private static int
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprivate static StrongholdPieces.StrongholdPiece
findAndCreatePieceFactory
(Class<? extends StrongholdPieces.StrongholdPiece> p_229427_, StructurePieceAccessor p_229428_, RandomSource p_229429_, int p_229430_, int p_229431_, int p_229432_, Direction p_229433_, int p_229434_) (package private) static StructurePiece
generateAndAddPiece
(StrongholdPieces.StartPiece p_229437_, StructurePieceAccessor p_229438_, RandomSource p_229439_, int p_229440_, int p_229441_, int p_229442_, Direction p_229443_, int p_229444_) private static StrongholdPieces.StrongholdPiece
generatePieceFromSmallDoor
(StrongholdPieces.StartPiece p_229418_, StructurePieceAccessor p_229419_, RandomSource p_229420_, int p_229421_, int p_229422_, int p_229423_, Direction p_229424_, int p_229425_) static void
private static boolean
-
Field Details
-
SMALL_DOOR_WIDTH
private static final int SMALL_DOOR_WIDTH- See Also:
-
SMALL_DOOR_HEIGHT
private static final int SMALL_DOOR_HEIGHT- See Also:
-
MAX_DEPTH
private static final int MAX_DEPTH- See Also:
-
LOWEST_Y_POSITION
private static final int LOWEST_Y_POSITION- See Also:
-
CHECK_AIR
private static final boolean CHECK_AIR- See Also:
-
MAGIC_START_Y
public static final int MAGIC_START_Y- See Also:
-
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_229427_, StructurePieceAccessor p_229428_, RandomSource p_229429_, int p_229430_, int p_229431_, int p_229432_, @Nullable Direction p_229433_, int p_229434_) -
generatePieceFromSmallDoor
private static StrongholdPieces.StrongholdPiece generatePieceFromSmallDoor(StrongholdPieces.StartPiece p_229418_, StructurePieceAccessor p_229419_, RandomSource p_229420_, int p_229421_, int p_229422_, int p_229423_, Direction p_229424_, int p_229425_) -
generateAndAddPiece
static StructurePiece generateAndAddPiece(StrongholdPieces.StartPiece p_229437_, StructurePieceAccessor p_229438_, RandomSource p_229439_, int p_229440_, int p_229441_, int p_229442_, @Nullable Direction p_229443_, int p_229444_)
-