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, Vec3f target, Transformation.Interpolation interpolation)
extends Record
- Mappings:
- Namespace - Name - official - egn- intermediary - net/minecraft/class_7186- named - net/minecraft/client/render/entity/animation/Keyframe- official - a- intermediary - comp_600- named - timestamp- official - b- intermediary - comp_601- named - target- official - c- intermediary - comp_602- named - interpolation
- 
Field SummaryFieldsModifier and TypeFieldDescriptionprivate final Transformation.InterpolationThe field for theinterpolationrecord component.private final Vec3fThe field for thetargetrecord component.private final floatThe field for thetimestamprecord component.
- 
Constructor SummaryConstructorsConstructorDescriptionKeyframe(float float2, Vec3f vec3f, Transformation.Interpolation interpolation) 
- 
Method SummaryModifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theinterpolationrecord component.target()Returns the value of thetargetrecord component.floatReturns the value of thetimestamprecord component.final StringtoString()Returns a string representation of this record class.
- 
Field Details- 
timestampprivate final float timestampThe field for thetimestamprecord component.
- 
targetThe field for thetargetrecord component.
- 
interpolationThe field for theinterpolationrecord component.
 
- 
- 
Constructor Details- 
Keyframe
 
- 
- 
Method Details- 
toStringReturns 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.
- 
hashCodepublic 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.
- 
equalsIndicates 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 '=='.
- 
timestamppublic float timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the timestamprecord component
 
- 
targetReturns the value of thetargetrecord component.- Returns:
- the value of the targetrecord component
 
- 
interpolationReturns the value of theinterpolationrecord component.- Returns:
- the value of the interpolationrecord component
 
 
-