@Environment(value=CLIENT) public class AnimationResourceMetadata extends Object
Modifier and Type | Field and Description |
---|---|
private int |
defaultFrameTime |
static AnimationResourceMetadata |
EMPTY |
private List<AnimationFrameResourceMetadata> |
frames |
private int |
height |
private boolean |
interpolate |
static AnimationResourceMetadataReader |
READER |
private int |
width |
Constructor and Description |
---|
AnimationResourceMetadata(List<AnimationFrameResourceMetadata> frames,
int width,
int height,
int defaultFrameTime,
boolean interpolate) |
Modifier and Type | Method and Description |
---|---|
int |
getDefaultFrameTime() |
private AnimationFrameResourceMetadata |
getFrame(int frameIndex) |
int |
getFrameCount() |
int |
getFrameIndex(int frameIndex) |
Set<Integer> |
getFrameIndexSet() |
int |
getFrameTime(int frameIndex) |
int |
getHeight(int int2) |
int |
getWidth(int int2) |
com.mojang.datafixers.util.Pair<Integer,Integer> |
method_24141(int int2,
int int3) |
private static boolean |
method_24142(int int2,
int int3) |
private com.mojang.datafixers.util.Pair<Integer,Integer> |
method_24143(int int2,
int int3) |
boolean |
shouldInterpolate() |
public static final AnimationResourceMetadataReader READER
public static final AnimationResourceMetadata EMPTY
private final List<AnimationFrameResourceMetadata> frames
private final int width
private final int height
private final int defaultFrameTime
private final boolean interpolate
public AnimationResourceMetadata(List<AnimationFrameResourceMetadata> frames, int width, int height, int defaultFrameTime, boolean interpolate)
private static boolean method_24142(int int2, int int3)
public com.mojang.datafixers.util.Pair<Integer,Integer> method_24141(int int2, int int3)
private com.mojang.datafixers.util.Pair<Integer,Integer> method_24143(int int2, int int3)
public int getHeight(int int2)
public int getWidth(int int2)
public int getFrameCount()
public int getDefaultFrameTime()
public boolean shouldInterpolate()
private AnimationFrameResourceMetadata getFrame(int frameIndex)
public int getFrameTime(int frameIndex)
public int getFrameIndex(int frameIndex)