Record Class ConstantEasing
java.lang.Object
java.lang.Record
net.thewinnt.cutscenes.easing.types.ConstantEasing
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ConstantEasingstatic final ConstantEasingstatic final ConstantEasingstatic final ConstantEasingFields inherited from interface net.thewinnt.cutscenes.easing.Easing
CODEC, CONSTANT_CODEC, DISPATCH_CODEC, EASING_MACROS, LOGGER, MACRO_CODEC, MACRO_OR_DISPATCH_CODEC, SIMPLE_CODEC, SIMPLE_OR_CONSTANT_CODEC -
Constructor Summary
ConstructorsConstructorDescriptionConstantEasing(double value) Creates an instance of aConstantEasingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.doubleget(double t) Returns the eased value from given tfinal inthashCode()Returns a hash code value for this object.voidtoNetwork(net.minecraft.network.FriendlyByteBuf buf) final StringtoString()Returns a string representation of this record class.doublevalue()Returns the value of thevaluerecord component.
-
Field Details
-
PI
-
E
-
ONE
-
ZERO
-
-
Constructor Details
-
ConstantEasing
public ConstantEasing(double value) Creates an instance of aConstantEasingrecord class.- Parameters:
value- the value for thevaluerecord component
-
-
Method Details
-
get
-
getSerializer
- Specified by:
getSerializerin interfaceEasing- Returns:
- a serializer that creates easings of this type
-
toNetwork
-
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. -
value
public double value()Returns the value of thevaluerecord component.- Returns:
- the value of the
valuerecord component
-