public class AnimationMetadataSection
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static AnimationMetadataSection |
EMPTY |
static AnimationMetadataSectionSerializer |
SERIALIZER |
Constructor and Description |
---|
AnimationMetadataSection(java.util.List<AnimationFrame> animationFramesIn,
int frameWidthIn,
int frameHeightIn,
int frameTimeIn,
boolean interpolateIn) |
Modifier and Type | Method and Description |
---|---|
int |
getFrameCount() |
int |
getFrameHeight(int defHeightIn) |
int |
getFrameIndex(int frame) |
java.util.Set<java.lang.Integer> |
getFrameIndexSet() |
int |
getFrameTime() |
int |
getFrameTimeSingle(int frame) |
int |
getFrameWidth(int defWidthIn) |
com.mojang.datafixers.util.Pair<java.lang.Integer,java.lang.Integer> |
getSpriteSize(int widthIn,
int heightIn) |
boolean |
isInterpolate() |
public static final AnimationMetadataSectionSerializer SERIALIZER
public static final AnimationMetadataSection EMPTY
public AnimationMetadataSection(java.util.List<AnimationFrame> animationFramesIn, int frameWidthIn, int frameHeightIn, int frameTimeIn, boolean interpolateIn)
public com.mojang.datafixers.util.Pair<java.lang.Integer,java.lang.Integer> getSpriteSize(int widthIn, int heightIn)
public int getFrameHeight(int defHeightIn)
public int getFrameWidth(int defWidthIn)
public int getFrameCount()
public int getFrameTime()
public boolean isInterpolate()
public int getFrameTimeSingle(int frame)
public int getFrameIndex(int frame)
public java.util.Set<java.lang.Integer> getFrameIndexSet()