Record Class Track<T>
java.lang.Object
java.lang.Record
net.minecraft.world.attribute.timeline.Track<T>
- Record Components:
keyframes-easingType-
- Mappings:
Namespace Name named net/minecraft/world/attribute/timeline/Trackintermediary net/minecraft/class_12306official bgbnamed keyframesintermediary comp_5204official anamed easingTypeintermediary comp_5205official b
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final EasingTypeThe field for theeasingTyperecord component.The field for thekeyframesrecord component. -
Constructor Summary
ConstructorsConstructorDescriptionTrack(List<Keyframe<T>> keyframes, EasingType easingType) Creates an instance of aTrackrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> com.mojang.serialization.MapCodec<Track<T>> createCodec(com.mojang.serialization.Codec<T> valueCodec) createEvaluator(Optional<Integer> period, Interpolator<T> interpolator) Returns the value of theeasingTyperecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thekeyframesrecord component.final StringtoString()Returns a string representation of this record class.validateKeyframes(List<Keyframe<T>> keyframes) static com.mojang.serialization.DataResult<Track<?>> validateKeyframesInPeriod(Track<?> track, int period)
-
Field Details
-
keyframes
The field for thekeyframesrecord component. -
easingType
The field for theeasingTyperecord component.
-
-
Constructor Details
-
Track
Creates an instance of aTrackrecord class.- Parameters:
keyframes- the value for thekeyframesrecord componenteasingType- the value for theeasingTyperecord component
-
-
Method Details
-
createCodec
public static <T> com.mojang.serialization.MapCodec<Track<T>> createCodec(com.mojang.serialization.Codec<T> valueCodec) - Mappings:
Namespace Name Mixin selector named createCodecLnet/minecraft/world/attribute/timeline/Track;createCodec(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/MapCodec;intermediary method_76377Lnet/minecraft/class_12306;method_76377(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/MapCodec;official aLbgb;a(Lcom/mojang/serialization/Codec;)Lcom/mojang/serialization/MapCodec;
-
validateKeyframes
static <T> com.mojang.serialization.DataResult<List<Keyframe<T>>> validateKeyframes(List<Keyframe<T>> keyframes) - Mappings:
Namespace Name Mixin selector named validateKeyframesLnet/minecraft/world/attribute/timeline/Track;validateKeyframes(Ljava/util/List;)Lcom/mojang/serialization/DataResult;intermediary method_76379Lnet/minecraft/class_12306;method_76379(Ljava/util/List;)Lcom/mojang/serialization/DataResult;official aLbgb;a(Ljava/util/List;)Lcom/mojang/serialization/DataResult;
-
validateKeyframesInPeriod
public static com.mojang.serialization.DataResult<Track<?>> validateKeyframesInPeriod(Track<?> track, int period) - Mappings:
Namespace Name Mixin selector named validateKeyframesInPeriodLnet/minecraft/world/attribute/timeline/Track;validateKeyframesInPeriod(Lnet/minecraft/world/attribute/timeline/Track;I)Lcom/mojang/serialization/DataResult;intermediary method_76376Lnet/minecraft/class_12306;method_76376(Lnet/minecraft/class_12306;I)Lcom/mojang/serialization/DataResult;official aLbgb;a(Lbgb;I)Lcom/mojang/serialization/DataResult;
-
createEvaluator
- Mappings:
Namespace Name Mixin selector named createEvaluatorLnet/minecraft/world/attribute/timeline/Track;createEvaluator(Ljava/util/Optional;Lnet/minecraft/util/math/Interpolator;)Lnet/minecraft/world/attribute/timeline/TrackEvaluator;intermediary method_76380Lnet/minecraft/class_12306;method_76380(Ljava/util/Optional;Lnet/minecraft/class_12210;)Lnet/minecraft/class_12308;official aLbgb;a(Ljava/util/Optional;Lceg;)Lbgc;
-
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 withObjects::equals(Object,Object). -
keyframes
Returns the value of thekeyframesrecord component.- Returns:
- the value of the
keyframesrecord component
-
easingType
Returns the value of theeasingTyperecord component.- Returns:
- the value of the
easingTyperecord component
-