Class TerrainProvider
java.lang.Object
net.minecraft.data.worldgen.TerrainProvider
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final BoundedFloatFunction<Float> private static final BoundedFloatFunction<Float> private static final BoundedFloatFunction<Float> private static final floatprivate static final floatprivate static final BoundedFloatFunction<Float> private static final floatprivate static final float -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static <C, I extends BoundedFloatFunction<C>>
CubicSpline<C, I> buildErosionJaggednessSpline(I erosion, I weirdness, I ridges, float jaggednessFactorAtPeakRidgeAndErosionIndex0, float jaggednessFactorAtPeakRidgeAndErosionIndex1, float jaggednessFactorAtHighRidgeAndErosionIndex0, float jaggednessFactorAtHighRidgeAndErosionIndex1, BoundedFloatFunction<Float> jaggednessTransformer) static <C, I extends BoundedFloatFunction<C>>
CubicSpline<C, I> buildErosionOffsetSpline(I erosion, I ridges, float lowValley, float hill, float tallHill, float mountainFactor, float plain, float swamp, boolean includeExtremeHills, boolean saddle, BoundedFloatFunction<Float> offsetTransformer) private static <C, I extends BoundedFloatFunction<C>>
CubicSpline<C, I> buildMountainRidgeSplineWithPoints(I ridges, float modulation, boolean saddle, BoundedFloatFunction<Float> offsetTransformer) private static <C, I extends BoundedFloatFunction<C>>
CubicSpline<C, I> buildRidgeJaggednessSpline(I weirdness, I ridges, float jaggednessFactorAtPeakRidge, float jaggednessFactorAtHighRidge, BoundedFloatFunction<Float> jaggednessTransformer) private static <C, I extends BoundedFloatFunction<C>>
CubicSpline<C, I> buildWeirdnessJaggednessSpline(I weirdness, float jaggednessFactor, BoundedFloatFunction<Float> jaggednessTransformer) private static floatcalculateMountainRidgeZeroContinentalnessPoint(float modulation) private static floatcalculateSlope(float y1, float y2, float x1, float x2) private static <C, I extends BoundedFloatFunction<C>>
CubicSpline<C, I> getErosionFactor(I erosion, I weirdness, I ridges, float baseValue, boolean shatteredTerrain, BoundedFloatFunction<Float> factorTransformer) private static floatmountainContinentalness(float ridge, float modulation, float allowRiversBelow) static <C, I extends BoundedFloatFunction<C>>
CubicSpline<C, I> overworldFactor(I continents, I erosion, I weirdness, I ridges, boolean amplified) static <C, I extends BoundedFloatFunction<C>>
CubicSpline<C, I> overworldJaggedness(I continents, I erosion, I weirdness, I ridges, boolean amplified) static <C, I extends BoundedFloatFunction<C>>
CubicSpline<C, I> overworldOffset(I continents, I erosion, I ridges, boolean amplified) private static <C, I extends BoundedFloatFunction<C>>
CubicSpline<C, I> ridgeSpline(I ridges, float valley, float low, float mid, float high, float peaks, float minValleySteepness, BoundedFloatFunction<Float> offsetTransformer)
-
Field Details
-
DEEP_OCEAN_CONTINENTALNESS
private static final float DEEP_OCEAN_CONTINENTALNESS- See Also:
-
OCEAN_CONTINENTALNESS
private static final float OCEAN_CONTINENTALNESS- See Also:
-
PLAINS_CONTINENTALNESS
private static final float PLAINS_CONTINENTALNESS- See Also:
-
BEACH_CONTINENTALNESS
private static final float BEACH_CONTINENTALNESS- See Also:
-
NO_TRANSFORM
-
AMPLIFIED_OFFSET
-
AMPLIFIED_FACTOR
-
AMPLIFIED_JAGGEDNESS
-
-
Constructor Details
-
TerrainProvider
public TerrainProvider()
-
-
Method Details
-
overworldOffset
public static <C, I extends BoundedFloatFunction<C>> CubicSpline<C,I> overworldOffset(I continents, I erosion, I ridges, boolean amplified) -
overworldFactor
public static <C, I extends BoundedFloatFunction<C>> CubicSpline<C,I> overworldFactor(I continents, I erosion, I weirdness, I ridges, boolean amplified) -
overworldJaggedness
public static <C, I extends BoundedFloatFunction<C>> CubicSpline<C,I> overworldJaggedness(I continents, I erosion, I weirdness, I ridges, boolean amplified) -
buildErosionJaggednessSpline
private static <C, I extends BoundedFloatFunction<C>> CubicSpline<C,I> buildErosionJaggednessSpline(I erosion, I weirdness, I ridges, float jaggednessFactorAtPeakRidgeAndErosionIndex0, float jaggednessFactorAtPeakRidgeAndErosionIndex1, float jaggednessFactorAtHighRidgeAndErosionIndex0, float jaggednessFactorAtHighRidgeAndErosionIndex1, BoundedFloatFunction<Float> jaggednessTransformer) -
buildRidgeJaggednessSpline
private static <C, I extends BoundedFloatFunction<C>> CubicSpline<C,I> buildRidgeJaggednessSpline(I weirdness, I ridges, float jaggednessFactorAtPeakRidge, float jaggednessFactorAtHighRidge, BoundedFloatFunction<Float> jaggednessTransformer) -
buildWeirdnessJaggednessSpline
private static <C, I extends BoundedFloatFunction<C>> CubicSpline<C,I> buildWeirdnessJaggednessSpline(I weirdness, float jaggednessFactor, BoundedFloatFunction<Float> jaggednessTransformer) -
getErosionFactor
private static <C, I extends BoundedFloatFunction<C>> CubicSpline<C,I> getErosionFactor(I erosion, I weirdness, I ridges, float baseValue, boolean shatteredTerrain, BoundedFloatFunction<Float> factorTransformer) -
calculateSlope
private static float calculateSlope(float y1, float y2, float x1, float x2) -
buildMountainRidgeSplineWithPoints
private static <C, I extends BoundedFloatFunction<C>> CubicSpline<C,I> buildMountainRidgeSplineWithPoints(I ridges, float modulation, boolean saddle, BoundedFloatFunction<Float> offsetTransformer) -
mountainContinentalness
private static float mountainContinentalness(float ridge, float modulation, float allowRiversBelow) -
calculateMountainRidgeZeroContinentalnessPoint
private static float calculateMountainRidgeZeroContinentalnessPoint(float modulation) -
buildErosionOffsetSpline
public static <C, I extends BoundedFloatFunction<C>> CubicSpline<C,I> buildErosionOffsetSpline(I erosion, I ridges, float lowValley, float hill, float tallHill, float mountainFactor, float plain, float swamp, boolean includeExtremeHills, boolean saddle, BoundedFloatFunction<Float> offsetTransformer) -
ridgeSpline
private static <C, I extends BoundedFloatFunction<C>> CubicSpline<C,I> ridgeSpline(I ridges, float valley, float low, float mid, float high, float peaks, float minValleySteepness, BoundedFloatFunction<Float> offsetTransformer)
-