Record Class SingleArgumentEasing
java.lang.Object
java.lang.Record
net.thewinnt.cutscenes.easing.types.SingleArgumentEasing
- All Implemented Interfaces:
Easing
public record SingleArgumentEasing(Easing argument, DoubleUnaryOperator operation)
extends Record
implements Easing
-
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
ConstructorsConstructorDescriptionSingleArgumentEasing(Easing argument, DoubleUnaryOperator operation) Creates an instance of aSingleArgumentEasingrecord class. -
Method Summary
Modifier and TypeMethodDescriptionargument()Returns the value of theargumentrecord 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
-
SingleArgumentEasing
Creates an instance of aSingleArgumentEasingrecord class.- Parameters:
argument- the value for theargumentrecord 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). -
argument
Returns the value of theargumentrecord component.- Returns:
- the value of the
argumentrecord component
-
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-