Package net.minecraft.util
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
ConstructorsConstructorDescriptionCubicCurve(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 value) floatsampleGradient(float value) 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
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 value) -
sampleGradient
public float sampleGradient(float value) -
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. -
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. -
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 '=='. -
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
-