Class StrongholdPieces
java.lang.Object
net.minecraft.world.level.levelgen.structure.structures.StrongholdPieces
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classstatic class(package private) static classstatic classstatic classstatic classstatic class(package private) static classstatic classstatic classstatic classstatic class(package private) static classstatic class -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final booleanprivate static List<StrongholdPieces.PieceWeight> (package private) static Class<? extends StrongholdPieces.StrongholdPiece> private static final intstatic final intprivate static final intprivate static final intprivate static final int(package private) static final StrongholdPieces.SmoothStoneSelectorprivate static final StrongholdPieces.PieceWeight[]private static int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static StrongholdPieces.StrongholdPiecefindAndCreatePieceFactory(Class<? extends StrongholdPieces.StrongholdPiece> pPieceClass, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection, int pGenDepth) (package private) static StructurePiecegenerateAndAddPiece(StrongholdPieces.StartPiece pPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection, int pGenDepth) private static StrongholdPieces.StrongholdPiecegeneratePieceFromSmallDoor(StrongholdPieces.StartPiece pPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection, int pGenDepth) static voidprivate 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> pPieceClass, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, @Nullable Direction pDirection, int pGenDepth) -
generatePieceFromSmallDoor
private static StrongholdPieces.StrongholdPiece generatePieceFromSmallDoor(StrongholdPieces.StartPiece pPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, Direction pDirection, int pGenDepth) -
generateAndAddPiece
static StructurePiece generateAndAddPiece(StrongholdPieces.StartPiece pPiece, StructurePieceAccessor pPieces, RandomSource pRandom, int pX, int pY, int pZ, @Nullable Direction pDirection, int pGenDepth)
-