Record Class CanyonWorldCarver.Shape

java.lang.Object
java.lang.Record
net.minecraft.world.level.levelgen.carver.CanyonWorldCarver.Shape
Enclosing class:
CanyonWorldCarver

public static record CanyonWorldCarver.Shape(FloatProvider distanceFactor, FloatProvider thickness, int widthSmoothness, FloatProvider horizontalRadiusFactor, float verticalRadiusDefaultFactor, float verticalRadiusCenterFactor, FloatProvider yScale) extends Record
  • Field Details

    • distanceFactor

      private final FloatProvider distanceFactor
      The field for the distanceFactor record component.
    • thickness

      private final FloatProvider thickness
      The field for the thickness record component.
    • widthSmoothness

      private final int widthSmoothness
      The field for the widthSmoothness record component.
    • horizontalRadiusFactor

      private final FloatProvider horizontalRadiusFactor
      The field for the horizontalRadiusFactor record component.
    • verticalRadiusDefaultFactor

      private final float verticalRadiusDefaultFactor
      The field for the verticalRadiusDefaultFactor record component.
    • verticalRadiusCenterFactor

      private final float verticalRadiusCenterFactor
      The field for the verticalRadiusCenterFactor record component.
    • yScale

      private final FloatProvider yScale
      The field for the yScale record component.
    • CODEC

      public static final com.mojang.serialization.Codec<CanyonWorldCarver.Shape> CODEC
  • Constructor Details

    • Shape

      public Shape(FloatProvider distanceFactor, FloatProvider thickness, int widthSmoothness, FloatProvider horizontalRadiusFactor, float verticalRadiusDefaultFactor, float verticalRadiusCenterFactor, FloatProvider yScale)
      Creates an instance of a Shape record class.
      Parameters:
      distanceFactor - the value for the distanceFactor record component
      thickness - the value for the thickness record component
      widthSmoothness - the value for the widthSmoothness record component
      horizontalRadiusFactor - the value for the horizontalRadiusFactor record component
      verticalRadiusDefaultFactor - the value for the verticalRadiusDefaultFactor record component
      verticalRadiusCenterFactor - the value for the verticalRadiusCenterFactor record component
      yScale - the value for the yScale record component
  • Method Details

    • toString

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

      public final boolean equals(Object o)
      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 the compare method from their corresponding wrapper classes.
      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.
    • distanceFactor

      public FloatProvider distanceFactor()
      Returns the value of the distanceFactor record component.
      Returns:
      the value of the distanceFactor record component
    • thickness

      public FloatProvider thickness()
      Returns the value of the thickness record component.
      Returns:
      the value of the thickness record component
    • widthSmoothness

      public int widthSmoothness()
      Returns the value of the widthSmoothness record component.
      Returns:
      the value of the widthSmoothness record component
    • horizontalRadiusFactor

      public FloatProvider horizontalRadiusFactor()
      Returns the value of the horizontalRadiusFactor record component.
      Returns:
      the value of the horizontalRadiusFactor record component
    • verticalRadiusDefaultFactor

      public float verticalRadiusDefaultFactor()
      Returns the value of the verticalRadiusDefaultFactor record component.
      Returns:
      the value of the verticalRadiusDefaultFactor record component
    • verticalRadiusCenterFactor

      public float verticalRadiusCenterFactor()
      Returns the value of the verticalRadiusCenterFactor record component.
      Returns:
      the value of the verticalRadiusCenterFactor record component
    • yScale

      public FloatProvider yScale()
      Returns the value of the yScale record component.
      Returns:
      the value of the yScale record component