Record Class DensityFunctions.TerrainShaperSpline
java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.DensityFunctions.TerrainShaperSpline
- All Implemented Interfaces:
DensityFunction
- Enclosing class:
- DensityFunctions
@Deprecated
public static record DensityFunctions.TerrainShaperSpline(DensityFunction continentalness, DensityFunction erosion, DensityFunction weirdness, @Nullable TerrainShaper shaper, DensityFunctions.TerrainShaperSpline.SplineType spline, double minValue, double maxValue)
extends Record
implements DensityFunction
Deprecated.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescription(package private) static interfaceDeprecated.static enumDeprecated.Nested classes/interfaces inherited from interface net.minecraft.world.level.levelgen.DensityFunction
DensityFunction.ContextProvider, DensityFunction.FunctionContext, DensityFunction.SimpleFunction, DensityFunction.SinglePointContext, DensityFunction.Visitor -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DensityFunctions.TerrainShaperSpline>Deprecated.private final DensityFunctionDeprecated.The field for thecontinentalnessrecord component.private static final com.mojang.serialization.MapCodec<DensityFunctions.TerrainShaperSpline>Deprecated.private final DensityFunctionDeprecated.The field for theerosionrecord component.private final doubleDeprecated.The field for themaxValuerecord component.private final doubleDeprecated.The field for theminValuerecord component.private final TerrainShaperDeprecated.The field for theshaperrecord component.private final DensityFunctions.TerrainShaperSpline.SplineTypeDeprecated.The field for thesplinerecord component.private final DensityFunctionDeprecated.The field for theweirdnessrecord component.Fields inherited from interface net.minecraft.world.level.levelgen.DensityFunction
DIRECT_CODEC, HOLDER_HELPER_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionTerrainShaperSpline(DensityFunction continentalness, DensityFunction erosion, DensityFunction weirdness, TerrainShaper shaper, DensityFunctions.TerrainShaperSpline.SplineType spline, double minValue, double maxValue) Deprecated.Creates an instance of aTerrainShaperSplinerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends DensityFunction>codec()Deprecated.doublecompute(DensityFunction.FunctionContext p_209016_) Deprecated.Deprecated.Returns the value of thecontinentalnessrecord component.createUnseeded(DensityFunction p_209020_, DensityFunction p_209021_, DensityFunction p_209022_, DensityFunctions.TerrainShaperSpline.SplineType p_209023_, double p_209024_, double p_209025_) Deprecated.final booleanDeprecated.Indicates whether some other object is "equal to" this one.erosion()Deprecated.Returns the value of theerosionrecord component.voidfillArray(double[] p_209027_, DensityFunction.ContextProvider p_209028_) Deprecated.final inthashCode()Deprecated.Returns a hash code value for this object.mapAll(DensityFunction.Visitor p_209018_) Deprecated.doublemaxValue()Deprecated.Returns the value of themaxValuerecord component.doubleminValue()Deprecated.Returns the value of theminValuerecord component.shaper()Deprecated.Returns the value of theshaperrecord component.spline()Deprecated.Returns the value of thesplinerecord component.final StringtoString()Deprecated.Returns a string representation of this record class.Deprecated.Returns the value of theweirdnessrecord component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.minecraft.world.level.levelgen.DensityFunction
abs, clamp, cube, halfNegative, quarterNegative, square, squeeze
-
Field Details
-
continentalness
Deprecated.The field for thecontinentalnessrecord component. -
erosion
Deprecated.The field for theerosionrecord component. -
weirdness
Deprecated.The field for theweirdnessrecord component. -
shaper
Deprecated.The field for theshaperrecord component. -
spline
Deprecated.The field for thesplinerecord component. -
minValue
private final double minValueDeprecated.The field for theminValuerecord component. -
maxValue
private final double maxValueDeprecated.The field for themaxValuerecord component. -
DATA_CODEC
private static final com.mojang.serialization.MapCodec<DensityFunctions.TerrainShaperSpline> DATA_CODECDeprecated. -
CODEC
Deprecated.
-
-
Constructor Details
-
TerrainShaperSpline
public TerrainShaperSpline(DensityFunction continentalness, DensityFunction erosion, DensityFunction weirdness, @Nullable TerrainShaper shaper, DensityFunctions.TerrainShaperSpline.SplineType spline, double minValue, double maxValue) Deprecated.Creates an instance of aTerrainShaperSplinerecord class.- Parameters:
continentalness- the value for thecontinentalnessrecord componenterosion- the value for theerosionrecord componentweirdness- the value for theweirdnessrecord componentshaper- the value for theshaperrecord componentspline- the value for thesplinerecord componentminValue- the value for theminValuerecord componentmaxValue- the value for themaxValuerecord component
-
-
Method Details
-
createUnseeded
public static DensityFunctions.TerrainShaperSpline createUnseeded(DensityFunction p_209020_, DensityFunction p_209021_, DensityFunction p_209022_, DensityFunctions.TerrainShaperSpline.SplineType p_209023_, double p_209024_, double p_209025_) Deprecated. -
compute
Deprecated.- Specified by:
computein interfaceDensityFunction
-
fillArray
Deprecated.- Specified by:
fillArrayin interfaceDensityFunction
-
mapAll
Deprecated.- Specified by:
mapAllin interfaceDensityFunction
-
codec
Deprecated.- Specified by:
codecin interfaceDensityFunction
-
minValue
public double minValue()Deprecated.Returns the value of theminValuerecord component.- Specified by:
minValuein interfaceDensityFunction- Returns:
- the value of the
minValuerecord component
-
maxValue
public double maxValue()Deprecated.Returns the value of themaxValuerecord component.- Specified by:
maxValuein interfaceDensityFunction- Returns:
- the value of the
maxValuerecord component
-
toString
Deprecated.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()Deprecated.Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Deprecated.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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
continentalness
Deprecated.Returns the value of thecontinentalnessrecord component.- Returns:
- the value of the
continentalnessrecord component
-
erosion
Deprecated.Returns the value of theerosionrecord component.- Returns:
- the value of the
erosionrecord component
-
weirdness
Deprecated.Returns the value of theweirdnessrecord component.- Returns:
- the value of the
weirdnessrecord component
-
shaper
Deprecated.Returns the value of theshaperrecord component.- Returns:
- the value of the
shaperrecord component
-
spline
Deprecated.Returns the value of thesplinerecord component.- Returns:
- the value of the
splinerecord component
-