Record Class EasingType.CubicBezierControlPoints
java.lang.Object
java.lang.Record
net.minecraft.world.attribute.timeline.EasingType.CubicBezierControlPoints
- Record Components:
x1-y1-x2-y2-
- Enclosing interface:
EasingType
public static record EasingType.CubicBezierControlPoints(float x1, float y1, float x2, float y2)
extends Record
- Mappings:
Namespace Name named net/minecraft/world/attribute/timeline/EasingType$CubicBezierControlPointsintermediary net/minecraft/class_12301$class_12304official bfi$bnamed x1intermediary comp_5198official bnamed y1intermediary comp_5199official cnamed x2intermediary comp_5200official dnamed y2intermediary comp_5201official e
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final com.mojang.serialization.Codec<EasingType.CubicBezierControlPoints> 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
ConstructorsConstructorDescriptionCubicBezierControlPoints(float x1, float y1, float x2, float y2) Creates an instance of aCubicBezierControlPointsrecord 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.CubicBezierControlPoints> 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
- Mappings:
Namespace Name Mixin selector named CODECLnet/minecraft/world/attribute/timeline/EasingType$CubicBezierControlPoints;CODEC:Lcom/mojang/serialization/Codec;intermediary field_64306Lnet/minecraft/class_12301$class_12304;field_64306:Lcom/mojang/serialization/Codec;official aLbfi$b;a:Lcom/mojang/serialization/Codec;
-
-
Constructor Details
-
CubicBezierControlPoints
public CubicBezierControlPoints(float x1, float y1, float x2, float y2) Creates an instance of aCubicBezierControlPointsrecord class.
-
-
Method Details
-
validate
- Mappings:
Namespace Name Mixin selector named validateLnet/minecraft/world/attribute/timeline/EasingType$CubicBezierControlPoints;validate()Lcom/mojang/serialization/DataResult;intermediary method_76369Lnet/minecraft/class_12301$class_12304;method_76369()Lcom/mojang/serialization/DataResult;official eLbfi$b;e()Lcom/mojang/serialization/DataResult;
-
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 '=='. -
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
-