Record Class EasingType.CubicBezierControls
java.lang.Object
java.lang.Record
net.minecraft.util.EasingType.CubicBezierControls
- Enclosing interface:
EasingType
public static record EasingType.CubicBezierControls(float x1, float y1, float x2, float y2)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EasingType.CubicBezierControls> private final floatThe field for thex1record component.private final floatThe field for thex2record component.private final floatThe field for they1record component.private final floatThe field for they2record component. -
Constructor Summary
ConstructorsConstructorDescriptionCubicBezierControls(float x1, float y1, float x2, float y2) Creates an instance of aCubicBezierControlsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.private com.mojang.serialization.DataResult<EasingType.CubicBezierControls> validate()floatx1()Returns the value of thex1record component.floatx2()Returns the value of thex2record component.floaty1()Returns the value of they1record component.floaty2()Returns the value of they2record component.
-
Field Details
-
x1
private final float x1The field for thex1record component. -
y1
private final float y1The field for they1record component. -
x2
private final float x2The field for thex2record component. -
y2
private final float y2The field for they2record component. -
CODEC
-
-
Constructor Details
-
CubicBezierControls
public CubicBezierControls(float x1, float y1, float x2, float y2) Creates an instance of aCubicBezierControlsrecord class.- Parameters:
x1- the value for thex1record componenty1- the value for they1record componentx2- the value for thex2record componenty2- the value for they2record component
-
-
Method Details
-
validate
-
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. -
x1
public float x1()Returns the value of thex1record component.- Returns:
- the value of the
x1record component
-
y1
public float y1()Returns the value of they1record component.- Returns:
- the value of the
y1record component
-
x2
public float x2()Returns the value of thex2record component.- Returns:
- the value of the
x2record component
-
y2
public float y2()Returns the value of they2record component.- Returns:
- the value of the
y2record component
-