Record Class VanillaTerrainParameters
java.lang.Object
java.lang.Record
net.minecraft.world.biome.source.util.VanillaTerrainParameters
- Record Components:
offsetSpline-factorSpline-peakSpline-
public record VanillaTerrainParameters(Spline<VanillaTerrainParameters.NoisePoint> offsetSpline, Spline<VanillaTerrainParameters.NoisePoint> factorSpline, Spline<VanillaTerrainParameters.NoisePoint> peakSpline)
extends Record
- Mappings:
Namespace Name official ccdintermediary net/minecraft/class_6555named net/minecraft/world/biome/source/util/VanillaTerrainParametersofficial bintermediary comp_464named offsetSplineofficial cintermediary comp_465named factorSplineofficial dintermediary comp_466named peakSpline
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprotected static enumstatic final record -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<VanillaTerrainParameters>private final Spline<VanillaTerrainParameters.NoisePoint>The field for thefactorSplinerecord component.private static final com.mojang.serialization.Codec<Spline<VanillaTerrainParameters.NoisePoint>>private static final ToFloatFunction<Float>private static final floatprivate final Spline<VanillaTerrainParameters.NoisePoint>The field for theoffsetSplinerecord component.private final Spline<VanillaTerrainParameters.NoisePoint>The field for thepeakSplinerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionVanillaTerrainParameters(Spline<VanillaTerrainParameters.NoisePoint> offsetSpline, Spline<VanillaTerrainParameters.NoisePoint> factorSpline, Spline<VanillaTerrainParameters.NoisePoint> peakSpline) Creates an instance of aVanillaTerrainParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionprivate static Spline<VanillaTerrainParameters.NoisePoint>buildErosionFactorSpline(float value, boolean bool, ToFloatFunction<Float> toFloatFunction) private static Spline<VanillaTerrainParameters.NoisePoint>createFlatOffsetSpline(float float2, float float3, float float4, float float5, float float6, float float7, ToFloatFunction<Float> toFloatFunction) private static Spline<VanillaTerrainParameters.NoisePoint>createLandSpline(float float2, float float3, float float4, float float5, float float6, float float7, boolean bool, boolean bool2, ToFloatFunction<Float> toFloatFunction) createNoisePoint(float float2, float float3, float float4) static VanillaTerrainParameterscreateSurfaceParameters(boolean amplified) final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefactorSplinerecord component.floatstatic floatgetNormalizedWeirdness(float weirdness) floatprivate static floatgetOffsetValue(float weirdness, float continentalness, float weirdnessThreshold) floatfinal inthashCode()Returns a hash code value for this object.private static floatmethod_38210(float float2, float float3, float float4, float float5) private static floatmethod_38217(float continentalness) private static Spline<VanillaTerrainParameters.NoisePoint>method_38219(float float2, boolean bool, ToFloatFunction<Float> toFloatFunction) private static Spline<VanillaTerrainParameters.NoisePoint>method_38855(float float2, float float3, ToFloatFunction<Float> toFloatFunction) private static Spline<VanillaTerrainParameters.NoisePoint>method_38856(float float2, float float3, float float4, float float5, ToFloatFunction<Float> toFloatFunction) private static Spline<VanillaTerrainParameters.NoisePoint>method_38857(float float2, ToFloatFunction<Float> toFloatFunction) private static floatmethod_39534(float float2) private static floatmethod_39535(float float2) private static floatmethod_39536(float float2) Returns the value of theoffsetSplinerecord component.Returns the value of thepeakSplinerecord component.final StringtoString()Returns a string representation of this record class.voidwriteDebugBiomes(Consumer<com.mojang.datafixers.util.Pair<MultiNoiseUtil.NoiseHypercube, RegistryKey<Biome>>> parameters)
-
Field Details
-
offsetSpline
The field for theoffsetSplinerecord component. -
factorSpline
The field for thefactorSplinerecord component. -
peakSpline
The field for thepeakSplinerecord component. -
field_35457
private static final com.mojang.serialization.Codec<Spline<VanillaTerrainParameters.NoisePoint>> field_35457- Mappings:
Namespace Name Mixin selector official eLccd;e:Lcom/mojang/serialization/Codec;intermediary field_35457Lnet/minecraft/class_6555;field_35457:Lcom/mojang/serialization/Codec;named field_35457Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters;field_35457:Lcom/mojang/serialization/Codec;
-
CODEC
- Mappings:
Namespace Name Mixin selector official aLccd;a:Lcom/mojang/serialization/Codec;intermediary field_35456Lnet/minecraft/class_6555;field_35456:Lcom/mojang/serialization/Codec;named CODECLnet/minecraft/world/biome/source/util/VanillaTerrainParameters;CODEC:Lcom/mojang/serialization/Codec;
-
OFFSET_VALUE_OFFSET
private static final float OFFSET_VALUE_OFFSET- See Also:
- Mappings:
Namespace Name Mixin selector official fLccd;f:Fintermediary field_34531Lnet/minecraft/class_6555;field_34531:Fnamed OFFSET_VALUE_OFFSETLnet/minecraft/world/biome/source/util/VanillaTerrainParameters;OFFSET_VALUE_OFFSET:F
-
field_35673
- Mappings:
Namespace Name Mixin selector official gLccd;g:Lajx;intermediary field_35673Lnet/minecraft/class_6555;field_35673:Lnet/minecraft/class_6501;named field_35673Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters;field_35673:Lnet/minecraft/util/function/ToFloatFunction;
-
-
Constructor Details
-
VanillaTerrainParameters
public VanillaTerrainParameters(Spline<VanillaTerrainParameters.NoisePoint> offsetSpline, Spline<VanillaTerrainParameters.NoisePoint> factorSpline, Spline<VanillaTerrainParameters.NoisePoint> peakSpline) Creates an instance of aVanillaTerrainParametersrecord class.- Parameters:
offsetSpline- the value for theoffsetSplinerecord componentfactorSpline- the value for thefactorSplinerecord componentpeakSpline- the value for thepeakSplinerecord component
-
-
Method Details
-
method_39534
private static float method_39534(float float2) - Mappings:
Namespace Name Mixin selector official bLccd;b(F)Fintermediary method_39534Lnet/minecraft/class_6555;method_39534(F)Fnamed method_39534Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters;method_39534(F)F
-
method_39535
private static float method_39535(float float2) - Mappings:
Namespace Name Mixin selector official cLccd;c(F)Fintermediary method_39535Lnet/minecraft/class_6555;method_39535(F)Fnamed method_39535Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters;method_39535(F)F
-
method_39536
private static float method_39536(float float2) - Mappings:
Namespace Name Mixin selector official dLccd;d(F)Fintermediary method_39536Lnet/minecraft/class_6555;method_39536(F)Fnamed method_39536Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters;method_39536(F)F
-
createSurfaceParameters
- Mappings:
Namespace Name Mixin selector official aLccd;a(Z)Lccd;intermediary method_39457Lnet/minecraft/class_6555;method_39457(Z)Lnet/minecraft/class_6555;named createSurfaceParametersLnet/minecraft/world/biome/source/util/VanillaTerrainParameters;createSurfaceParameters(Z)Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters;
-
method_38856
private static Spline<VanillaTerrainParameters.NoisePoint> method_38856(float float2, float float3, float float4, float float5, ToFloatFunction<Float> toFloatFunction) - Mappings:
Namespace Name Mixin selector official aLccd;a(FFFFLajx;)Laiq;intermediary method_38856Lnet/minecraft/class_6555;method_38856(FFFFLnet/minecraft/class_6501;)Lnet/minecraft/class_6492;named method_38856Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters;method_38856(FFFFLnet/minecraft/util/function/ToFloatFunction;)Lnet/minecraft/util/math/Spline;
-
method_38855
private static Spline<VanillaTerrainParameters.NoisePoint> method_38855(float float2, float float3, ToFloatFunction<Float> toFloatFunction) - Mappings:
Namespace Name Mixin selector official aLccd;a(FFLajx;)Laiq;intermediary method_38855Lnet/minecraft/class_6555;method_38855(FFLnet/minecraft/class_6501;)Lnet/minecraft/class_6492;named method_38855Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters;method_38855(FFLnet/minecraft/util/function/ToFloatFunction;)Lnet/minecraft/util/math/Spline;
-
method_38857
private static Spline<VanillaTerrainParameters.NoisePoint> method_38857(float float2, ToFloatFunction<Float> toFloatFunction) - Mappings:
Namespace Name Mixin selector official aLccd;a(FLajx;)Laiq;intermediary method_38857Lnet/minecraft/class_6555;method_38857(FLnet/minecraft/class_6501;)Lnet/minecraft/class_6492;named method_38857Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters;method_38857(FLnet/minecraft/util/function/ToFloatFunction;)Lnet/minecraft/util/math/Spline;
-
buildErosionFactorSpline
private static Spline<VanillaTerrainParameters.NoisePoint> buildErosionFactorSpline(float value, boolean bool, ToFloatFunction<Float> toFloatFunction) - Mappings:
Namespace Name Mixin selector official aLccd;a(FZLajx;)Laiq;intermediary method_38213Lnet/minecraft/class_6555;method_38213(FZLnet/minecraft/class_6501;)Lnet/minecraft/class_6492;named buildErosionFactorSplineLnet/minecraft/world/biome/source/util/VanillaTerrainParameters;buildErosionFactorSpline(FZLnet/minecraft/util/function/ToFloatFunction;)Lnet/minecraft/util/math/Spline;
-
method_38210
private static float method_38210(float float2, float float3, float float4, float float5) - Mappings:
Namespace Name Mixin selector official aLccd;a(FFFF)Fintermediary method_38210Lnet/minecraft/class_6555;method_38210(FFFF)Fnamed method_38210Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters;method_38210(FFFF)F
-
method_38219
private static Spline<VanillaTerrainParameters.NoisePoint> method_38219(float float2, boolean bool, ToFloatFunction<Float> toFloatFunction) - Mappings:
Namespace Name Mixin selector official bLccd;b(FZLajx;)Laiq;intermediary method_38219Lnet/minecraft/class_6555;method_38219(FZLnet/minecraft/class_6501;)Lnet/minecraft/class_6492;named method_38219Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters;method_38219(FZLnet/minecraft/util/function/ToFloatFunction;)Lnet/minecraft/util/math/Spline;
-
getOffsetValue
private static float getOffsetValue(float weirdness, float continentalness, float weirdnessThreshold) - Mappings:
Namespace Name Mixin selector official bLccd;b(FFF)Fintermediary method_38218Lnet/minecraft/class_6555;method_38218(FFF)Fnamed getOffsetValueLnet/minecraft/world/biome/source/util/VanillaTerrainParameters;getOffsetValue(FFF)F
-
method_38217
private static float method_38217(float continentalness) - Mappings:
Namespace Name Mixin selector official eLccd;e(F)Fintermediary method_38217Lnet/minecraft/class_6555;method_38217(F)Fnamed method_38217Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters;method_38217(F)F
-
createLandSpline
private static Spline<VanillaTerrainParameters.NoisePoint> createLandSpline(float float2, float float3, float float4, float float5, float float6, float float7, boolean bool, boolean bool2, ToFloatFunction<Float> toFloatFunction) - Mappings:
Namespace Name Mixin selector official aLccd;a(FFFFFFZZLajx;)Laiq;intermediary method_38212Lnet/minecraft/class_6555;method_38212(FFFFFFZZLnet/minecraft/class_6501;)Lnet/minecraft/class_6492;named createLandSplineLnet/minecraft/world/biome/source/util/VanillaTerrainParameters;createLandSpline(FFFFFFZZLnet/minecraft/util/function/ToFloatFunction;)Lnet/minecraft/util/math/Spline;
-
createFlatOffsetSpline
private static Spline<VanillaTerrainParameters.NoisePoint> createFlatOffsetSpline(float float2, float float3, float float4, float float5, float float6, float float7, ToFloatFunction<Float> toFloatFunction) - Mappings:
Namespace Name Mixin selector official aLccd;a(FFFFFFLajx;)Laiq;intermediary method_38211Lnet/minecraft/class_6555;method_38211(FFFFFFLnet/minecraft/class_6501;)Lnet/minecraft/class_6492;named createFlatOffsetSplineLnet/minecraft/world/biome/source/util/VanillaTerrainParameters;createFlatOffsetSpline(FFFFFFLnet/minecraft/util/function/ToFloatFunction;)Lnet/minecraft/util/math/Spline;
-
writeDebugBiomes
public void writeDebugBiomes(Consumer<com.mojang.datafixers.util.Pair<MultiNoiseUtil.NoiseHypercube, RegistryKey<Biome>>> parameters) - Mappings:
Namespace Name Mixin selector official aLccd;a(Ljava/util/function/Consumer;)Vintermediary method_38215Lnet/minecraft/class_6555;method_38215(Ljava/util/function/Consumer;)Vnamed writeDebugBiomesLnet/minecraft/world/biome/source/util/VanillaTerrainParameters;writeDebugBiomes(Ljava/util/function/Consumer;)V
-
offsetSpline
Returns the value of theoffsetSplinerecord component.- Returns:
- the value of the
offsetSplinerecord component
-
factorSpline
Returns the value of thefactorSplinerecord component.- Returns:
- the value of the
factorSplinerecord component
-
peakSpline
Returns the value of thepeakSplinerecord component.- Returns:
- the value of the
peakSplinerecord component
-
getOffset
- Mappings:
Namespace Name Mixin selector official aLccd;a(Lccd$b;)Fintermediary method_38214Lnet/minecraft/class_6555;method_38214(Lnet/minecraft/class_6555$class_6556;)Fnamed getOffsetLnet/minecraft/world/biome/source/util/VanillaTerrainParameters;getOffset(Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters$NoisePoint;)F
-
getFactor
- Mappings:
Namespace Name Mixin selector official bLccd;b(Lccd$b;)Fintermediary method_38220Lnet/minecraft/class_6555;method_38220(Lnet/minecraft/class_6555$class_6556;)Fnamed getFactorLnet/minecraft/world/biome/source/util/VanillaTerrainParameters;getFactor(Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters$NoisePoint;)F
-
getPeak
- Mappings:
Namespace Name Mixin selector official cLccd;c(Lccd$b;)Fintermediary method_38221Lnet/minecraft/class_6555;method_38221(Lnet/minecraft/class_6555$class_6556;)Fnamed getPeakLnet/minecraft/world/biome/source/util/VanillaTerrainParameters;getPeak(Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters$NoisePoint;)F
-
createNoisePoint
public static VanillaTerrainParameters.NoisePoint createNoisePoint(float float2, float float3, float float4) - Mappings:
Namespace Name Mixin selector official aLccd;a(FFF)Lccd$b;intermediary method_38209Lnet/minecraft/class_6555;method_38209(FFF)Lnet/minecraft/class_6555$class_6556;named createNoisePointLnet/minecraft/world/biome/source/util/VanillaTerrainParameters;createNoisePoint(FFF)Lnet/minecraft/world/biome/source/util/VanillaTerrainParameters$NoisePoint;
-
getNormalizedWeirdness
public static float getNormalizedWeirdness(float weirdness) - Mappings:
Namespace Name Mixin selector official aLccd;a(F)Fintermediary method_38208Lnet/minecraft/class_6555;method_38208(F)Fnamed getNormalizedWeirdnessLnet/minecraft/world/biome/source/util/VanillaTerrainParameters;getNormalizedWeirdness(F)F
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object).
-