Record Class TimelineEntry<Value,Argument>

java.lang.Object
java.lang.Record
net.minecraft.world.attribute.timeline.TimelineEntry<Value,Argument>
Record Components:
modifier -
argumentTrack -

public record TimelineEntry<Value,Argument>(EnvironmentAttributeModifier<Value,Argument> modifier, Track<Argument> argumentTrack) extends Record
Mappings:
Namespace Name
named net/minecraft/world/attribute/timeline/TimelineEntry
intermediary net/minecraft/class_12327
official fud
named modifier
intermediary comp_5223
official a
named argumentTrack
intermediary comp_5224
official b
  • Field Details

  • Constructor Details

  • Method Details

    • createCodec

      public static <Value> com.mojang.serialization.Codec<TimelineEntry<Value,?>> createCodec(EnvironmentAttribute<Value> attribute)
      Mappings:
      Namespace Name Mixin selector
      named createCodec Lnet/minecraft/world/attribute/timeline/TimelineEntry;createCodec(Lnet/minecraft/world/attribute/EnvironmentAttribute;)Lcom/mojang/serialization/Codec;
      intermediary method_76471 Lnet/minecraft/class_12327;method_76471(Lnet/minecraft/class_12197;)Lcom/mojang/serialization/Codec;
      official a Lfud;a(Lcdy;)Lcom/mojang/serialization/Codec;
    • createMapCodec

      private static <Value, Argument> com.mojang.serialization.MapCodec<TimelineEntry<Value,Argument>> createMapCodec(EnvironmentAttribute<Value> attribute, EnvironmentAttributeModifier<Value,Argument> modifier)
      Mappings:
      Namespace Name Mixin selector
      named createMapCodec Lnet/minecraft/world/attribute/timeline/TimelineEntry;createMapCodec(Lnet/minecraft/world/attribute/EnvironmentAttribute;Lnet/minecraft/world/attribute/EnvironmentAttributeModifier;)Lcom/mojang/serialization/MapCodec;
      intermediary method_76472 Lnet/minecraft/class_12327;method_76472(Lnet/minecraft/class_12197;Lnet/minecraft/class_12212;)Lcom/mojang/serialization/MapCodec;
      official a Lfud;a(Lcdy;Lcej;)Lcom/mojang/serialization/MapCodec;
    • toModification

      public TrackAttributeModification<Value,Argument> toModification(EnvironmentAttribute<Value> attribute, Optional<Integer> period, LongSupplier timeSupplier)
      Mappings:
      Namespace Name Mixin selector
      named toModification Lnet/minecraft/world/attribute/timeline/TimelineEntry;toModification(Lnet/minecraft/world/attribute/EnvironmentAttribute;Ljava/util/Optional;Ljava/util/function/LongSupplier;)Lnet/minecraft/world/attribute/timeline/TrackAttributeModification;
      intermediary method_76473 Lnet/minecraft/class_12327;method_76473(Lnet/minecraft/class_12197;Ljava/util/Optional;Ljava/util/function/LongSupplier;)Lnet/minecraft/class_12328;
      official a Lfud;a(Lcdy;Ljava/util/Optional;Ljava/util/function/LongSupplier;)Lfue;
    • validateKeyframesInPeriod

      public static com.mojang.serialization.DataResult<TimelineEntry<?,?>> validateKeyframesInPeriod(TimelineEntry<?,?> entry, int period)
      Mappings:
      Namespace Name Mixin selector
      named validateKeyframesInPeriod Lnet/minecraft/world/attribute/timeline/TimelineEntry;validateKeyframesInPeriod(Lnet/minecraft/world/attribute/timeline/TimelineEntry;I)Lcom/mojang/serialization/DataResult;
      intermediary method_76475 Lnet/minecraft/class_12327;method_76475(Lnet/minecraft/class_12327;I)Lcom/mojang/serialization/DataResult;
      official a Lfud;a(Lfud;I)Lcom/mojang/serialization/DataResult;
    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object object)
      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 Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      object - the object with which to compare
      Returns:
      true if this object is the same as the object argument; false otherwise.
    • modifier

      Returns the value of the modifier record component.
      Returns:
      the value of the modifier record component
    • argumentTrack

      public Track<Argument> argumentTrack()
      Returns the value of the argumentTrack record component.
      Returns:
      the value of the argumentTrack record component