Record Class AnimationFrameResourceMetadata

java.lang.Object
java.lang.Record
net.minecraft.client.resource.metadata.AnimationFrameResourceMetadata
Record Components:
index -
time -

@Environment(CLIENT) public record AnimationFrameResourceMetadata(int index, Optional<Integer> time) extends Record
Mappings:
Namespace Name
named net/minecraft/client/resource/metadata/AnimationFrameResourceMetadata
intermediary net/minecraft/class_1080
official hgf
named index
intermediary comp_3451
official c
named time
intermediary comp_3452
official d
  • Field Details Link icon

    • index Link icon

      private final int index
      The field for the index record component.
    • time Link icon

      private final Optional<Integer> time
      The field for the time record component.
    • BASE_CODEC Link icon

      public static final com.mojang.serialization.Codec<AnimationFrameResourceMetadata> BASE_CODEC
      Mappings:
      Namespace Name Mixin selector
      named BASE_CODEC Lnet/minecraft/client/resource/metadata/AnimationFrameResourceMetadata;BASE_CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_55534 Lnet/minecraft/class_1080;field_55534:Lcom/mojang/serialization/Codec;
      official a Lhgf;a:Lcom/mojang/serialization/Codec;
    • CODEC Link icon

      public static final com.mojang.serialization.Codec<AnimationFrameResourceMetadata> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/resource/metadata/AnimationFrameResourceMetadata;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_55535 Lnet/minecraft/class_1080;field_55535:Lcom/mojang/serialization/Codec;
      official b Lhgf;b:Lcom/mojang/serialization/Codec;
  • Constructor Details Link icon

    • AnimationFrameResourceMetadata Link icon

      public AnimationFrameResourceMetadata(int index)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/resource/metadata/AnimationFrameResourceMetadata;<init>(I)V
      intermediary <init> Lnet/minecraft/class_1080;<init>(I)V
      official <init> Lhgf;<init>(I)V
    • AnimationFrameResourceMetadata Link icon

      public AnimationFrameResourceMetadata(int index, Optional<Integer> optional)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/resource/metadata/AnimationFrameResourceMetadata;<init>(ILjava/util/Optional;)V
      intermediary <init> Lnet/minecraft/class_1080;<init>(ILjava/util/Optional;)V
      official <init> Lhgf;<init>(ILjava/util/Optional;)V
  • Method Details Link icon

    • getTime Link icon

      public int getTime(int defaultTime)
      Mappings:
      Namespace Name Mixin selector
      named getTime Lnet/minecraft/client/resource/metadata/AnimationFrameResourceMetadata;getTime(I)I
      intermediary method_4691 Lnet/minecraft/class_1080;method_4691(I)I
      official a Lhgf;a(I)I
    • toString Link icon

      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 Link icon

      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 Link icon

      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. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      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.
    • index Link icon

      public int index()
      Returns the value of the index record component.
      Returns:
      the value of the index record component
    • time Link icon

      public Optional<Integer> time()
      Returns the value of the time record component.
      Returns:
      the value of the time record component