Record Class Keyframe
java.lang.Object
java.lang.Record
net.minecraft.client.render.entity.animation.Keyframe
- Record Components:
timestamp
-target
-interpolation
-
@Environment(CLIENT)
public record Keyframe(float timestamp, Vector3f target, Transformation.Interpolation interpolation)
extends Record
- Mappings:
Namespace Name named net/minecraft/client/render/entity/animation/Keyframe
intermediary net/minecraft/class_7186
official ffx
named timestamp
intermediary comp_600
official a
named target
intermediary comp_601
official b
named interpolation
intermediary comp_602
official c
-
Field Summary
Modifier and TypeFieldDescriptionprivate final Transformation.Interpolation
The field for theinterpolation
record component.private final Vector3f
The field for thetarget
record component.private final float
The field for thetimestamp
record component. -
Constructor Summary
ConstructorDescriptionKeyframe
(float float2, Vector3f vector3f, Transformation.Interpolation interpolation) -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.Returns the value of theinterpolation
record component.target()
Returns the value of thetarget
record component.float
Returns the value of thetimestamp
record component.final String
toString()
Returns a string representation of this record class.
-
Field Details
-
timestamp
private final float timestampThe field for thetimestamp
record component. -
target
The field for thetarget
record component. -
interpolation
The field for theinterpolation
record component.
-
-
Constructor Details
-
Keyframe
-
-
Method Details
-
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. Reference components are compared withObjects::equals(Object,Object)
; primitive components are compared with '=='. -
timestamp
public float timestamp()Returns the value of thetimestamp
record component.- Returns:
- the value of the
timestamp
record component
-
target
Returns the value of thetarget
record component.- Returns:
- the value of the
target
record component
-
interpolation
Returns the value of theinterpolation
record component.- Returns:
- the value of the
interpolation
record component
-