Record Class EasingType.CubicBezier.Parameters
java.lang.Object
java.lang.Record
net.minecraft.world.attribute.timeline.EasingType.CubicBezier.Parameters
- Record Components:
a-b-c-
- Enclosing class:
EasingType.CubicBezier
Describes the parameters of a cubic Bézier curve in one axis. The constant
coefficient is always 0 because the curve starts at (0, 0).
- Mappings:
Namespace Name named net/minecraft/world/attribute/timeline/EasingType$CubicBezier$Parametersintermediary net/minecraft/class_12301$class_12302$class_12303official bfi$a$anamed aintermediary comp_5195official anamed bintermediary comp_5196official bnamed cintermediary comp_5197official c
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionParameters(float a, float b, float c) Creates an instance of aParametersrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfloata()Returns the value of thearecord component.floatapply(float t) floatb()Returns the value of thebrecord component.floatc()Returns the value of thecrecord component.floatderivative(float t) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
Method Details
-
apply
public float apply(float t) - Mappings:
Namespace Name Mixin selector named applyLnet/minecraft/world/attribute/timeline/EasingType$CubicBezier$Parameters;apply(F)Fintermediary method_76365Lnet/minecraft/class_12301$class_12302$class_12303;method_76365(F)Fofficial aLbfi$a$a;a(F)F
-
derivative
public float derivative(float t) - Mappings:
Namespace Name Mixin selector named derivativeLnet/minecraft/world/attribute/timeline/EasingType$CubicBezier$Parameters;derivative(F)Fintermediary method_76366Lnet/minecraft/class_12301$class_12302$class_12303;method_76366(F)Fofficial bLbfi$a$a;b(F)F
-
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
-