Record Class DoubleArgumentEasing
java.lang.Object
java.lang.Record
net.thewinnt.cutscenes.easing.types.DoubleArgumentEasing
-
Field Summary
Fields 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
ConstructorsConstructorDescriptionDoubleArgumentEasing(Easing arg1, Easing arg2, DoubleBinaryOperator operation) Creates an instance of aDoubleArgumentEasingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionarg1()Returns the value of thearg1record component.arg2()Returns the value of thearg2record component.final 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.Returns the value of theoperationrecord component.voidtoNetwork(net.minecraft.network.FriendlyByteBuf buf) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
DoubleArgumentEasing
Creates an instance of aDoubleArgumentEasingrecord class.- Parameters:
arg1- the value for thearg1record componentarg2- the value for thearg2record componentoperation- the value for theoperationrecord component
-
-
Method Details
-
get
-
toNetwork
-
getSerializer
- Specified by:
getSerializerin interfaceEasing- Returns:
- a serializer that creates easings of this type
-
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 withObjects::equals(Object,Object). -
arg1
Returns the value of thearg1record component.- Returns:
- the value of the
arg1record component
-
arg2
Returns the value of thearg2record component.- Returns:
- the value of the
arg2record component
-
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-