Class AnimationResourceMetadata

java.lang.Object
net.minecraft.client.resource.metadata.AnimationResourceMetadata

@Environment(CLIENT) public class AnimationResourceMetadata extends Object
Mappings:
Namespace Name
official gap
intermediary net/minecraft/class_1079
named net/minecraft/client/resource/metadata/AnimationResourceMetadata
  • Field Details

    • READER

      public static final AnimationResourceMetadataReader READER
      Mappings:
      Namespace Name Mixin selector
      official a Lgap;a:Lgaq;
      intermediary field_5337 Lnet/minecraft/class_1079;field_5337:Lnet/minecraft/class_1081;
      named READER Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;READER:Lnet/minecraft/client/resource/metadata/AnimationResourceMetadataReader;
    • KEY

      public static final String KEY
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official b Lgap;b:Ljava/lang/String;
      intermediary field_32974 Lnet/minecraft/class_1079;field_32974:Ljava/lang/String;
      named KEY Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;KEY:Ljava/lang/String;
    • EMPTY_FRAME_TIME

      public static final int EMPTY_FRAME_TIME
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official c Lgap;c:I
      intermediary field_32975 Lnet/minecraft/class_1079;field_32975:I
      named EMPTY_FRAME_TIME Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;EMPTY_FRAME_TIME:I
    • UNDEFINED

      public static final int UNDEFINED
      See Also:
      Mappings:
      Namespace Name Mixin selector
      official d Lgap;d:I
      intermediary field_32976 Lnet/minecraft/class_1079;field_32976:I
      named UNDEFINED Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;UNDEFINED:I
    • EMPTY

      public static final AnimationResourceMetadata EMPTY
      Mappings:
      Namespace Name Mixin selector
      official e Lgap;e:Lgap;
      intermediary field_21768 Lnet/minecraft/class_1079;field_21768:Lnet/minecraft/class_1079;
      named EMPTY Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;EMPTY:Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;
    • frames

      private final List<AnimationFrameResourceMetadata> frames
      Mappings:
      Namespace Name Mixin selector
      official f Lgap;f:Ljava/util/List;
      intermediary field_5339 Lnet/minecraft/class_1079;field_5339:Ljava/util/List;
      named frames Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;frames:Ljava/util/List;
    • width

      private final int width
      Mappings:
      Namespace Name Mixin selector
      official g Lgap;g:I
      intermediary field_5338 Lnet/minecraft/class_1079;field_5338:I
      named width Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;width:I
    • height

      private final int height
      Mappings:
      Namespace Name Mixin selector
      official h Lgap;h:I
      intermediary field_5336 Lnet/minecraft/class_1079;field_5336:I
      named height Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;height:I
    • defaultFrameTime

      private final int defaultFrameTime
      Mappings:
      Namespace Name Mixin selector
      official i Lgap;i:I
      intermediary field_5334 Lnet/minecraft/class_1079;field_5334:I
      named defaultFrameTime Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;defaultFrameTime:I
    • interpolate

      private final boolean interpolate
      Mappings:
      Namespace Name Mixin selector
      official j Lgap;j:Z
      intermediary field_5335 Lnet/minecraft/class_1079;field_5335:Z
      named interpolate Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;interpolate:Z
  • Constructor Details

    • AnimationResourceMetadata

      public AnimationResourceMetadata(List<AnimationFrameResourceMetadata> frames, int width, int height, int defaultFrameTime, boolean interpolate)
      Mappings:
      Namespace Name Mixin selector
      official <init> Lgap;<init>(Ljava/util/List;IIIZ)V
      intermediary <init> Lnet/minecraft/class_1079;<init>(Ljava/util/List;IIIZ)V
      named <init> Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;<init>(Ljava/util/List;IIIZ)V
  • Method Details

    • getSize

      public SpriteDimensions getSize(int defaultWidth, int defaultHeight)
      Mappings:
      Namespace Name Mixin selector
      official a Lgap;a(II)Lgar;
      intermediary method_24143 Lnet/minecraft/class_1079;method_24143(II)Lnet/minecraft/class_7771;
      named getSize Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;getSize(II)Lnet/minecraft/client/texture/SpriteDimensions;
    • getDefaultFrameTime

      public int getDefaultFrameTime()
      Mappings:
      Namespace Name Mixin selector
      official a Lgap;a()I
      intermediary method_4684 Lnet/minecraft/class_1079;method_4684()I
      named getDefaultFrameTime Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;getDefaultFrameTime()I
    • shouldInterpolate

      public boolean shouldInterpolate()
      Mappings:
      Namespace Name Mixin selector
      official b Lgap;b()Z
      intermediary method_4685 Lnet/minecraft/class_1079;method_4685()Z
      named shouldInterpolate Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;shouldInterpolate()Z
    • forEachFrame

      public void forEachFrame(AnimationResourceMetadata.FrameConsumer consumer)
      Mappings:
      Namespace Name Mixin selector
      official a Lgap;a(Lgap$a;)V
      intermediary method_33460 Lnet/minecraft/class_1079;method_33460(Lnet/minecraft/class_1079$class_5792;)V
      named forEachFrame Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;forEachFrame(Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata$FrameConsumer;)V