Record Class LerpEasing
java.lang.Object
java.lang.Record
net.thewinnt.cutscenes.easing.types.LerpEasing
-
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
ConstructorsConstructorDescriptionLerpEasing(Easing delta, Easing from, Easing to) Creates an instance of aLerpEasingrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondelta()Returns the value of thedeltarecord component.final booleanIndicates whether some other object is "equal to" this one.from()Returns the value of thefromrecord component.doubleget(double t) Returns the eased value from given tfinal inthashCode()Returns a hash code value for this object.to()Returns the value of thetorecord component.voidtoNetwork(net.minecraft.network.FriendlyByteBuf buf) final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LerpEasing
-
-
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 withObjects::equals(Object,Object). -
delta
Returns the value of thedeltarecord component.- Returns:
- the value of the
deltarecord component
-
from
Returns the value of thefromrecord component.- Returns:
- the value of the
fromrecord component
-
to
Returns the value of thetorecord component.- Returns:
- the value of the
torecord component
-