Class AnimationMetadataSection
- java.lang.Object
-
- net.minecraft.client.resources.data.AnimationMetadataSection
-
public class AnimationMetadataSection extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private int
defaultFrameTime
static AnimationMetadataSection
EMPTY
private int
frameHeight
private java.util.List<AnimationFrame>
frames
private int
frameWidth
private boolean
interpolatedFrames
static AnimationMetadataSectionSerializer
SERIALIZER
-
Constructor Summary
Constructors Constructor Description AnimationMetadataSection(java.util.List<AnimationFrame> p_i46088_1_, int p_i46088_2_, int p_i46088_3_, int p_i46088_4_, boolean p_i46088_5_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description private com.mojang.datafixers.util.Pair<java.lang.Integer,java.lang.Integer>
calculateFrameSize(int p_229304_1_, int p_229304_2_)
int
getDefaultFrameTime()
private AnimationFrame
getFrame(int p_130072_1_)
int
getFrameCount()
int
getFrameHeight(int p_229301_1_)
int
getFrameIndex(int p_110468_1_)
com.mojang.datafixers.util.Pair<java.lang.Integer,java.lang.Integer>
getFrameSize(int p_225641_1_, int p_225641_2_)
int
getFrameTime(int p_110472_1_)
int
getFrameWidth(int p_229302_1_)
java.util.Set<java.lang.Integer>
getUniqueFrameIndices()
private static boolean
isDivisionInteger(int p_229303_0_, int p_229303_1_)
boolean
isInterpolatedFrames()
-
-
-
Field Detail
-
SERIALIZER
public static final AnimationMetadataSectionSerializer SERIALIZER
-
EMPTY
public static final AnimationMetadataSection EMPTY
-
frames
private final java.util.List<AnimationFrame> frames
-
frameWidth
private final int frameWidth
-
frameHeight
private final int frameHeight
-
defaultFrameTime
private final int defaultFrameTime
-
interpolatedFrames
private final boolean interpolatedFrames
-
-
Constructor Detail
-
AnimationMetadataSection
public AnimationMetadataSection(java.util.List<AnimationFrame> p_i46088_1_, int p_i46088_2_, int p_i46088_3_, int p_i46088_4_, boolean p_i46088_5_)
-
-
Method Detail
-
isDivisionInteger
private static boolean isDivisionInteger(int p_229303_0_, int p_229303_1_)
-
getFrameSize
public com.mojang.datafixers.util.Pair<java.lang.Integer,java.lang.Integer> getFrameSize(int p_225641_1_, int p_225641_2_)
-
calculateFrameSize
private com.mojang.datafixers.util.Pair<java.lang.Integer,java.lang.Integer> calculateFrameSize(int p_229304_1_, int p_229304_2_)
-
getFrameHeight
public int getFrameHeight(int p_229301_1_)
-
getFrameWidth
public int getFrameWidth(int p_229302_1_)
-
getFrameCount
public int getFrameCount()
-
getDefaultFrameTime
public int getDefaultFrameTime()
-
isInterpolatedFrames
public boolean isInterpolatedFrames()
-
getFrame
private AnimationFrame getFrame(int p_130072_1_)
-
getFrameTime
public int getFrameTime(int p_110472_1_)
-
getFrameIndex
public int getFrameIndex(int p_110468_1_)
-
getUniqueFrameIndices
public java.util.Set<java.lang.Integer> getUniqueFrameIndices()
-
-