Class AnimationMetadataSection
java.lang.Object
net.minecraft.client.resources.metadata.animation.AnimationMetadataSection
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic int
private int
static AnimationMetadataSection
private int
private List<AnimationFrame>
private int
private boolean
static String
static int
-
Constructor Summary
ConstructorDescriptionAnimationMetadataSection(List<AnimationFrame> p_119020_, int p_119021_, int p_119022_, int p_119023_, boolean p_119024_)
-
Method Summary
Modifier and TypeMethodDescriptioncalculateFrameSize(int p_119040_, int p_119041_)
void
forEachFrame(AnimationMetadataSection.FrameOutput p_174862_)
int
int
getFrameHeight(int p_119027_)
getFrameSize(int p_119028_, int p_119029_)
int
getFrameWidth(int p_119032_)
private static boolean
isDivisionInteger(int p_119034_, int p_119035_)
boolean
-
Field Details
-
SERIALIZER
-
SECTION_NAME
- See Also:
- Constant Field Values
-
DEFAULT_FRAME_TIME
public static final int DEFAULT_FRAME_TIME- See Also:
- Constant Field Values
-
UNKNOWN_SIZE
public static final int UNKNOWN_SIZE- See Also:
- Constant Field Values
-
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_119020_, int p_119021_, int p_119022_, int p_119023_, boolean p_119024_)
-
-
Method Details
-
isDivisionInteger
private static boolean isDivisionInteger(int p_119034_, int p_119035_) -
getFrameSize
-
calculateFrameSize
-
getFrameHeight
public int getFrameHeight(int p_119027_) -
getFrameWidth
public int getFrameWidth(int p_119032_) -
getDefaultFrameTime
public int getDefaultFrameTime() -
isInterpolatedFrames
public boolean isInterpolatedFrames() -
forEachFrame
-