Class AnimationMetadataSection
java.lang.Object
net.minecraft.client.resources.data.AnimationMetadataSection
-
Field Summary
Modifier and TypeFieldDescriptionprivate final int
static final AnimationMetadataSection
private final int
private final List<AnimationFrame>
private final int
private final boolean
static final AnimationMetadataSectionSerializer
-
Constructor Summary
ConstructorDescriptionAnimationMetadataSection
(List<AnimationFrame> p_i46088_1_, int p_i46088_2_, int p_i46088_3_, int p_i46088_4_, boolean p_i46088_5_) -
Method Summary
Modifier and TypeMethodDescriptioncalculateFrameSize
(int p_229304_1_, int p_229304_2_) int
private AnimationFrame
getFrame
(int p_130072_1_) int
int
getFrameHeight
(int p_229301_1_) int
getFrameIndex
(int p_110468_1_) getFrameSize
(int p_225641_1_, int p_225641_2_) int
getFrameTime
(int p_110472_1_) int
getFrameWidth
(int p_229302_1_) private static boolean
isDivisionInteger
(int p_229303_0_, int p_229303_1_) boolean
-
Field Details
-
SERIALIZER
-
EMPTY
-
frames
-
frameWidth
private final int frameWidth -
frameHeight
private final int frameHeight -
defaultFrameTime
private final int defaultFrameTime -
interpolatedFrames
private final boolean interpolatedFrames
-
-
Constructor Details
-
AnimationMetadataSection
public AnimationMetadataSection(List<AnimationFrame> p_i46088_1_, int p_i46088_2_, int p_i46088_3_, int p_i46088_4_, boolean p_i46088_5_)
-
-
Method Details
-
isDivisionInteger
private static boolean isDivisionInteger(int p_229303_0_, int p_229303_1_) -
getFrameSize
-
calculateFrameSize
-
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
-
getFrameTime
public int getFrameTime(int p_110472_1_) -
getFrameIndex
public int getFrameIndex(int p_110468_1_) -
getUniqueFrameIndices
-