类 AnimationResourceMetadata


  • @Environment(CLIENT)
    public class AnimationResourceMetadata
    extends Object
    Mappings:
    Namespace Name
    official exd
    intermediary net/minecraft/class_1079
    named net/minecraft/client/resource/metadata/AnimationResourceMetadata
    • 字段详细资料

      • READER

        public static final AnimationResourceMetadataReader READER
        Mappings:
        Namespace Name Mixin selector
        official a Lexd;a:Lexe;
        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;
      • field_32974

        public static final String field_32974
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official b Lexd;b:Ljava/lang/String;
        intermediary field_32974 Lnet/minecraft/class_1079;field_32974:Ljava/lang/String;
        named field_32974 Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;field_32974:Ljava/lang/String;
      • field_32975

        public static final int field_32975
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official c Lexd;c:I
        intermediary field_32975 Lnet/minecraft/class_1079;field_32975:I
        named field_32975 Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;field_32975:I
      • field_32976

        public static final int field_32976
        另请参阅:
        常量字段值
        Mappings:
        Namespace Name Mixin selector
        official d Lexd;d:I
        intermediary field_32976 Lnet/minecraft/class_1079;field_32976:I
        named field_32976 Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;field_32976:I
      • EMPTY

        public static final AnimationResourceMetadata EMPTY
        Mappings:
        Namespace Name Mixin selector
        official e Lexd;e:Lexd;
        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 Lexd;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 Lexd;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 Lexd;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 Lexd;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 Lexd;j:Z
        intermediary field_5335 Lnet/minecraft/class_1079;field_5335:Z
        named interpolate Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;interpolate:Z
    • 构造器详细资料

      • AnimationResourceMetadata

        public AnimationResourceMetadata​(List<AnimationFrameResourceMetadata> frames,
                                         int width,
                                         int height,
                                         int defaultFrameTime,
                                         boolean interpolate)
        Mappings:
        Namespace Name Mixin selector
        official <init> Lexd;<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
    • 方法详细资料

      • isMultipleOf

        private static boolean isMultipleOf​(int dividend,
                                            int divisor)
        Mappings:
        Namespace Name Mixin selector
        official b Lexd;b(II)Z
        intermediary method_24142 Lnet/minecraft/class_1079;method_24142(II)Z
        named isMultipleOf Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;isMultipleOf(II)Z
      • ensureImageSize

        public com.mojang.datafixers.util.Pair<Integer,​Integer> ensureImageSize​(int x,
                                                                                      int y)
        Mappings:
        Namespace Name Mixin selector
        official a Lexd;a(II)Lcom/mojang/datafixers/util/Pair;
        intermediary method_24141 Lnet/minecraft/class_1079;method_24141(II)Lcom/mojang/datafixers/util/Pair;
        named ensureImageSize Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;ensureImageSize(II)Lcom/mojang/datafixers/util/Pair;
      • getSize

        private com.mojang.datafixers.util.Pair<Integer,​Integer> getSize​(int defaultWidth,
                                                                               int defaultHeight)
        Mappings:
        Namespace Name Mixin selector
        official c Lexd;c(II)Lcom/mojang/datafixers/util/Pair;
        intermediary method_24143 Lnet/minecraft/class_1079;method_24143(II)Lcom/mojang/datafixers/util/Pair;
        named getSize Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;getSize(II)Lcom/mojang/datafixers/util/Pair;
      • getHeight

        public int getHeight​(int defaultHeight)
        Mappings:
        Namespace Name Mixin selector
        official a Lexd;a(I)I
        intermediary method_4686 Lnet/minecraft/class_1079;method_4686(I)I
        named getHeight Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;getHeight(I)I
      • getWidth

        public int getWidth​(int defaultWidth)
        Mappings:
        Namespace Name Mixin selector
        official b Lexd;b(I)I
        intermediary method_4687 Lnet/minecraft/class_1079;method_4687(I)I
        named getWidth Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;getWidth(I)I
      • getDefaultFrameTime

        public int getDefaultFrameTime()
        Mappings:
        Namespace Name Mixin selector
        official a Lexd;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 Lexd;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 Lexd;a(Lexd$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