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
Modifier and TypeClassDescription(package private) static interface
Deprecated.static enum
Deprecated.Nested classes/interfaces inherited from interface net.minecraft.world.level.levelgen.DensityFunction
DensityFunction.ContextProvider, DensityFunction.FunctionContext, DensityFunction.SimpleFunction, DensityFunction.SinglePointContext, DensityFunction.Visitor
-
Field Summary
Modifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<DensityFunctions.TerrainShaperSpline>
Deprecated.private final DensityFunction
Deprecated.The field for thecontinentalness
record component.private static final com.mojang.serialization.MapCodec<DensityFunctions.TerrainShaperSpline>
Deprecated.private final DensityFunction
Deprecated.The field for theerosion
record component.private final double
Deprecated.The field for themaxValue
record component.private final double
Deprecated.The field for theminValue
record component.private final TerrainShaper
Deprecated.The field for theshaper
record component.private final DensityFunctions.TerrainShaperSpline.SplineType
Deprecated.The field for thespline
record component.private final DensityFunction
Deprecated.The field for theweirdness
record component.Fields inherited from interface net.minecraft.world.level.levelgen.DensityFunction
DIRECT_CODEC, HOLDER_HELPER_CODEC
-
Constructor Summary
ConstructorDescriptionTerrainShaperSpline
(DensityFunction continentalness, DensityFunction erosion, DensityFunction weirdness, TerrainShaper shaper, DensityFunctions.TerrainShaperSpline.SplineType spline, double minValue, double maxValue) Deprecated.Creates an instance of aTerrainShaperSpline
record class. -
Method Summary
Modifier and TypeMethodDescriptioncom.mojang.serialization.Codec<? extends DensityFunction>
codec()
Deprecated.double
compute
(DensityFunction.FunctionContext p_209016_) Deprecated.Deprecated.Returns the value of thecontinentalness
record component.createUnseeded
(DensityFunction p_209020_, DensityFunction p_209021_, DensityFunction p_209022_, DensityFunctions.TerrainShaperSpline.SplineType p_209023_, double p_209024_, double p_209025_) Deprecated.final boolean
Deprecated.Indicates whether some other object is "equal to" this one.erosion()
Deprecated.Returns the value of theerosion
record component.void
fillArray
(double[] p_209027_, DensityFunction.ContextProvider p_209028_) Deprecated.final int
hashCode()
Deprecated.Returns a hash code value for this object.mapAll
(DensityFunction.Visitor p_209018_) Deprecated.double
maxValue()
Deprecated.Returns the value of themaxValue
record component.double
minValue()
Deprecated.Returns the value of theminValue
record component.shaper()
Deprecated.Returns the value of theshaper
record component.spline()
Deprecated.Returns the value of thespline
record component.final String
toString()
Deprecated.Returns a string representation of this record class.Deprecated.Returns the value of theweirdness
record component.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.minecraft.world.level.levelgen.DensityFunction
abs, clamp, cube, halfNegative, quarterNegative, square, squeeze
-
Field Details
-
continentalness
Deprecated.The field for thecontinentalness
record component. -
erosion
Deprecated.The field for theerosion
record component. -
weirdness
Deprecated.The field for theweirdness
record component. -
shaper
Deprecated.The field for theshaper
record component. -
spline
Deprecated.The field for thespline
record component. -
minValue
private final double minValueDeprecated.The field for theminValue
record component. -
maxValue
private final double maxValueDeprecated.The field for themaxValue
record 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 aTerrainShaperSpline
record class.- Parameters:
continentalness
- the value for thecontinentalness
record componenterosion
- the value for theerosion
record componentweirdness
- the value for theweirdness
record componentshaper
- the value for theshaper
record componentspline
- the value for thespline
record componentminValue
- the value for theminValue
record componentmaxValue
- the value for themaxValue
record 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:
compute
in interfaceDensityFunction
-
fillArray
Deprecated.- Specified by:
fillArray
in interfaceDensityFunction
-
mapAll
Deprecated.- Specified by:
mapAll
in interfaceDensityFunction
-
codec
Deprecated.- Specified by:
codec
in interfaceDensityFunction
-
minValue
public double minValue()Deprecated.Returns the value of theminValue
record component.- Specified by:
minValue
in interfaceDensityFunction
- Returns:
- the value of the
minValue
record component
-
maxValue
public double maxValue()Deprecated.Returns the value of themaxValue
record component.- Specified by:
maxValue
in interfaceDensityFunction
- Returns:
- the value of the
maxValue
record 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 thecontinentalness
record component.- Returns:
- the value of the
continentalness
record component
-
erosion
Deprecated.Returns the value of theerosion
record component.- Returns:
- the value of the
erosion
record component
-
weirdness
Deprecated.Returns the value of theweirdness
record component.- Returns:
- the value of the
weirdness
record component
-
shaper
Deprecated.Returns the value of theshaper
record component.- Returns:
- the value of the
shaper
record component
-
spline
Deprecated.Returns the value of thespline
record component.- Returns:
- the value of the
spline
record component
-