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.
  • Field Details

    • continentalness

      private final DensityFunction continentalness
      Deprecated.
      The field for the continentalness record component.
    • erosion

      private final DensityFunction erosion
      Deprecated.
      The field for the erosion record component.
    • weirdness

      private final DensityFunction weirdness
      Deprecated.
      The field for the weirdness record component.
    • shaper

      @Nullable private final TerrainShaper shaper
      Deprecated.
      The field for the shaper record component.
    • spline

      Deprecated.
      The field for the spline record component.
    • minValue

      private final double minValue
      Deprecated.
      The field for the minValue record component.
    • maxValue

      private final double maxValue
      Deprecated.
      The field for the maxValue record component.
    • DATA_CODEC

      private static final com.mojang.serialization.MapCodec<DensityFunctions.TerrainShaperSpline> DATA_CODEC
      Deprecated.
    • CODEC

      public static final com.mojang.serialization.Codec<DensityFunctions.TerrainShaperSpline> 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 a TerrainShaperSpline record class.
      Parameters:
      continentalness - the value for the continentalness record component
      erosion - the value for the erosion record component
      weirdness - the value for the weirdness record component
      shaper - the value for the shaper record component
      spline - the value for the spline record component
      minValue - the value for the minValue record component
      maxValue - the value for the maxValue 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

      public double compute(DensityFunction.FunctionContext p_209016_)
      Deprecated.
      Specified by:
      compute in interface DensityFunction
    • fillArray

      public void fillArray(double[] p_209027_, DensityFunction.ContextProvider p_209028_)
      Deprecated.
      Specified by:
      fillArray in interface DensityFunction
    • mapAll

      public DensityFunction mapAll(DensityFunction.Visitor p_209018_)
      Deprecated.
      Specified by:
      mapAll in interface DensityFunction
    • codec

      public com.mojang.serialization.Codec<? extends DensityFunction> codec()
      Deprecated.
      Specified by:
      codec in interface DensityFunction
    • minValue

      public double minValue()
      Deprecated.
      Returns the value of the minValue record component.
      Specified by:
      minValue in interface DensityFunction
      Returns:
      the value of the minValue record component
    • maxValue

      public double maxValue()
      Deprecated.
      Returns the value of the maxValue record component.
      Specified by:
      maxValue in interface DensityFunction
      Returns:
      the value of the maxValue record component
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • continentalness

      public DensityFunction continentalness()
      Deprecated.
      Returns the value of the continentalness record component.
      Returns:
      the value of the continentalness record component
    • erosion

      public DensityFunction erosion()
      Deprecated.
      Returns the value of the erosion record component.
      Returns:
      the value of the erosion record component
    • weirdness

      public DensityFunction weirdness()
      Deprecated.
      Returns the value of the weirdness record component.
      Returns:
      the value of the weirdness record component
    • shaper

      @Nullable public TerrainShaper shaper()
      Deprecated.
      Returns the value of the shaper record component.
      Returns:
      the value of the shaper record component
    • spline

      Deprecated.
      Returns the value of the spline record component.
      Returns:
      the value of the spline record component