Record Class EasingType.CubicBezier.CubicCurve
java.lang.Object
java.lang.Record
net.minecraft.util.EasingType.CubicBezier.CubicCurve
- Enclosing class:
EasingType.CubicBezier
-
Field Summary
Fields -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateCubicCurve(float a, float b, float c) Creates an instance of aCubicCurverecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloata()Returns the value of thearecord component.floatb()Returns the value of thebrecord component.floatc()Returns the value of thecrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatsample(float t) floatsampleGradient(float t) final StringtoString()Returns a string representation of this record class.
-
Field Details
-
a
private final float aThe field for thearecord component. -
b
private final float bThe field for thebrecord component. -
c
private final float cThe field for thecrecord component.
-
-
Constructor Details
-
CubicCurve
private CubicCurve(float a, float b, float c) Creates an instance of aCubicCurverecord class.- Parameters:
a- the value for thearecord componentb- the value for thebrecord componentc- the value for thecrecord component
-
-
Method Details
-
sample
public float sample(float t) -
sampleGradient
public float sampleGradient(float t) -
toString
-
hashCode
-
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 with thecomparemethod from their corresponding wrapper classes. -
a
public float a()Returns the value of thearecord component.- Returns:
- the value of the
arecord component
-
b
public float b()Returns the value of thebrecord component.- Returns:
- the value of the
brecord component
-
c
public float c()Returns the value of thecrecord component.- Returns:
- the value of the
crecord component
-