Record Class AnimationResourceMetadata

java.lang.Object
java.lang.Record
net.minecraft.client.resource.metadata.AnimationResourceMetadata
Record Components:
frames -
width -
height -
defaultFrameTime -
interpolate -

@Environment(CLIENT) public record AnimationResourceMetadata(Optional<List<AnimationFrameResourceMetadata>> frames, Optional<Integer> width, Optional<Integer> height, int defaultFrameTime, boolean interpolate) extends Record
Mappings:
Namespace Name
named net/minecraft/client/resource/metadata/AnimationResourceMetadata
intermediary net/minecraft/class_1079
official hgg
named frames
intermediary comp_3453
official c
named width
intermediary comp_3454
official d
named height
intermediary comp_3455
official e
named defaultFrameTime
intermediary comp_3456
official f
named interpolate
intermediary comp_3457
official g
  • Field Details

    • frames

      The field for the frames record component.
    • width

      private final Optional<Integer> width
      The field for the width record component.
    • height

      private final Optional<Integer> height
      The field for the height record component.
    • defaultFrameTime

      private final int defaultFrameTime
      The field for the defaultFrameTime record component.
    • interpolate

      private final boolean interpolate
      The field for the interpolate record component.
    • CODEC

      public static final com.mojang.serialization.Codec<AnimationResourceMetadata> CODEC
      Mappings:
      Namespace Name Mixin selector
      named CODEC Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;CODEC:Lcom/mojang/serialization/Codec;
      intermediary field_55536 Lnet/minecraft/class_1079;field_55536:Lcom/mojang/serialization/Codec;
      official a Lhgg;a:Lcom/mojang/serialization/Codec;
    • SERIALIZER

      public static final ResourceMetadataSerializer<AnimationResourceMetadata> SERIALIZER
      Mappings:
      Namespace Name Mixin selector
      named SERIALIZER Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;SERIALIZER:Lnet/minecraft/resource/metadata/ResourceMetadataSerializer;
      intermediary field_55537 Lnet/minecraft/class_1079;field_55537:Lnet/minecraft/class_7677;
      official b Lhgg;b:Latp;
  • Constructor Details

    • AnimationResourceMetadata

      public AnimationResourceMetadata(Optional<List<AnimationFrameResourceMetadata>> optional, Optional<Integer> optional2, Optional<Integer> optional3, int defaultFrameTime, boolean interpolate)
      Mappings:
      Namespace Name Mixin selector
      named <init> Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;IZ)V
      intermediary <init> Lnet/minecraft/class_1079;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;IZ)V
      official <init> Lhgg;<init>(Ljava/util/Optional;Ljava/util/Optional;Ljava/util/Optional;IZ)V
  • Method Details

    • getSize

      public SpriteDimensions getSize(int defaultWidth, int defaultHeight)
      Mappings:
      Namespace Name Mixin selector
      named getSize Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;getSize(II)Lnet/minecraft/client/texture/SpriteDimensions;
      intermediary method_24143 Lnet/minecraft/class_1079;method_24143(II)Lnet/minecraft/class_7771;
      official a Lhgg;a(II)Lhgh;
    • 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. 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.
    • frames

      Returns the value of the frames record component.
      Returns:
      the value of the frames record component
    • width

      public Optional<Integer> width()
      Returns the value of the width record component.
      Returns:
      the value of the width record component
    • height

      public Optional<Integer> height()
      Returns the value of the height record component.
      Returns:
      the value of the height record component
    • defaultFrameTime

      public int defaultFrameTime()
      Returns the value of the defaultFrameTime record component.
      Returns:
      the value of the defaultFrameTime record component
    • interpolate

      public boolean interpolate()
      Returns the value of the interpolate record component.
      Returns:
      the value of the interpolate record component