Record Class AnimatorContext
java.lang.Object
java.lang.Record
dev.oxydien.mathimations.animations.AnimatorContext
public record AnimatorContext(double delta, double timeSinceEntityStart, float partialTicks)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAnimatorContext(double delta, double timeSinceEntityStart, float partialTicks) Creates an instance of aAnimatorContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptiondoubledelta()Returns the value of thedeltarecord component.final booleanIndicates whether some other object is "equal to" this one.doublegetDelta()floatdoublefinal inthashCode()Returns a hash code value for this object.floatReturns the value of thepartialTicksrecord component.doubleReturns the value of thetimeSinceEntityStartrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnimatorContext
public AnimatorContext(double delta, double timeSinceEntityStart, float partialTicks) Creates an instance of aAnimatorContextrecord class.- Parameters:
delta- the value for thedeltarecord componenttimeSinceEntityStart- the value for thetimeSinceEntityStartrecord componentpartialTicks- the value for thepartialTicksrecord component
-
-
Method Details
-
getPartialTicks
public float getPartialTicks() -
getDelta
public double getDelta() -
getTimeSinceEntityStart
public double getTimeSinceEntityStart() -
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 '=='. -
delta
public double delta()Returns the value of thedeltarecord component.- Returns:
- the value of the
deltarecord component
-
timeSinceEntityStart
public double timeSinceEntityStart()Returns the value of thetimeSinceEntityStartrecord component.- Returns:
- the value of the
timeSinceEntityStartrecord component
-
partialTicks
public float partialTicks()Returns the value of thepartialTicksrecord component.- Returns:
- the value of the
partialTicksrecord component
-