Class AnimationResourceMetadata
java.lang.Object
net.minecraft.client.resource.metadata.AnimationResourceMetadata
@Environment(CLIENT) public class AnimationResourceMetadata extends Object
- Mappings:
Namespace Name official esuintermediary net/minecraft/class_1079named net/minecraft/client/resource/metadata/AnimationResourceMetadata
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAnimationResourceMetadata.class_5792 -
Field Summary
Fields Modifier and Type Field Description private intdefaultFrameTimestatic AnimationResourceMetadataEMPTYprivate List<AnimationFrameResourceMetadata>framesprivate intheightprivate booleaninterpolatestatic AnimationResourceMetadataReaderREADERprivate intwidth -
Constructor Summary
Constructors Constructor Description AnimationResourceMetadata(List<AnimationFrameResourceMetadata> frames, int width, int height, int defaultFrameTime, boolean interpolate) -
Method Summary
Modifier and Type Method Description intgetDefaultFrameTime()intgetHeight(int defaultHeight)private com.mojang.datafixers.util.Pair<Integer,Integer>getSize(int defaultWidth, int defaultHeight)intgetWidth(int defaultWidth)com.mojang.datafixers.util.Pair<Integer,Integer>method_24141(int int2, int int3)private static booleanmethod_24142(int int2, int int3)voidmethod_33460(AnimationResourceMetadata.class_5792 class_5792)booleanshouldInterpolate()
-
Field Details
-
READER
- Mappings:
Namespace Name Mixin selector official aLesu;a:Lesv;intermediary field_5337Lnet/minecraft/class_1079;field_5337:Lnet/minecraft/class_1081;named READERLnet/minecraft/client/resource/metadata/AnimationResourceMetadata;READER:Lnet/minecraft/client/resource/metadata/AnimationResourceMetadataReader;
-
EMPTY
- Mappings:
Namespace Name Mixin selector official bLesu;b:Lesu;intermediary field_21768Lnet/minecraft/class_1079;field_21768:Lnet/minecraft/class_1079;named EMPTYLnet/minecraft/client/resource/metadata/AnimationResourceMetadata;EMPTY:Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;
-
frames
- Mappings:
Namespace Name Mixin selector official cLesu;c:Ljava/util/List;intermediary field_5339Lnet/minecraft/class_1079;field_5339:Ljava/util/List;named framesLnet/minecraft/client/resource/metadata/AnimationResourceMetadata;frames:Ljava/util/List;
-
width
private final int width- Mappings:
Namespace Name Mixin selector official dLesu;d:Iintermediary field_5338Lnet/minecraft/class_1079;field_5338:Inamed widthLnet/minecraft/client/resource/metadata/AnimationResourceMetadata;width:I
-
height
private final int height- Mappings:
Namespace Name Mixin selector official eLesu;e:Iintermediary field_5336Lnet/minecraft/class_1079;field_5336:Inamed heightLnet/minecraft/client/resource/metadata/AnimationResourceMetadata;height:I
-
defaultFrameTime
private final int defaultFrameTime- Mappings:
Namespace Name Mixin selector official fLesu;f:Iintermediary field_5334Lnet/minecraft/class_1079;field_5334:Inamed defaultFrameTimeLnet/minecraft/client/resource/metadata/AnimationResourceMetadata;defaultFrameTime:I
-
interpolate
private final boolean interpolate- Mappings:
Namespace Name Mixin selector official gLesu;g:Zintermediary field_5335Lnet/minecraft/class_1079;field_5335:Znamed interpolateLnet/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>Lesu;<init>(Ljava/util/List;IIIZ)Vintermediary <init>Lnet/minecraft/class_1079;<init>(Ljava/util/List;IIIZ)Vnamed <init>Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;<init>(Ljava/util/List;IIIZ)V
-
-
Method Details
-
method_24142
private static boolean method_24142(int int2, int int3)- Mappings:
Namespace Name Mixin selector official bLesu;b(II)Zintermediary method_24142Lnet/minecraft/class_1079;method_24142(II)Znamed method_24142Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;method_24142(II)Z
-
method_24141
- Mappings:
Namespace Name Mixin selector official aLesu;a(II)Lcom/mojang/datafixers/util/Pair;intermediary method_24141Lnet/minecraft/class_1079;method_24141(II)Lcom/mojang/datafixers/util/Pair;named method_24141Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;method_24141(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 cLesu;c(II)Lcom/mojang/datafixers/util/Pair;intermediary method_24143Lnet/minecraft/class_1079;method_24143(II)Lcom/mojang/datafixers/util/Pair;named getSizeLnet/minecraft/client/resource/metadata/AnimationResourceMetadata;getSize(II)Lcom/mojang/datafixers/util/Pair;
-
getHeight
public int getHeight(int defaultHeight)- Mappings:
Namespace Name Mixin selector official aLesu;a(I)Iintermediary method_4686Lnet/minecraft/class_1079;method_4686(I)Inamed getHeightLnet/minecraft/client/resource/metadata/AnimationResourceMetadata;getHeight(I)I
-
getWidth
public int getWidth(int defaultWidth)- Mappings:
Namespace Name Mixin selector official bLesu;b(I)Iintermediary method_4687Lnet/minecraft/class_1079;method_4687(I)Inamed getWidthLnet/minecraft/client/resource/metadata/AnimationResourceMetadata;getWidth(I)I
-
getDefaultFrameTime
public int getDefaultFrameTime()- Mappings:
Namespace Name Mixin selector official aLesu;a()Iintermediary method_4684Lnet/minecraft/class_1079;method_4684()Inamed getDefaultFrameTimeLnet/minecraft/client/resource/metadata/AnimationResourceMetadata;getDefaultFrameTime()I
-
shouldInterpolate
public boolean shouldInterpolate()- Mappings:
Namespace Name Mixin selector official bLesu;b()Zintermediary method_4685Lnet/minecraft/class_1079;method_4685()Znamed shouldInterpolateLnet/minecraft/client/resource/metadata/AnimationResourceMetadata;shouldInterpolate()Z
-
method_33460
- Mappings:
Namespace Name Mixin selector official aLesu;a(Lesu$a;)Vintermediary method_33460Lnet/minecraft/class_1079;method_33460(Lnet/minecraft/class_1079$class_5792;)Vnamed method_33460Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata;method_33460(Lnet/minecraft/client/resource/metadata/AnimationResourceMetadata$class_5792;)V
-