Class AnimationMetadataSection
java.lang.Object
net.minecraft.client.resources.metadata.animation.AnimationMetadataSection
-
Nested Class Summary
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
private final int
static final AnimationMetadataSection
private final int
private final List<AnimationFrame>
private final int
private final boolean
static final String
static final AnimationMetadataSectionSerializer
static final 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:
-
DEFAULT_FRAME_TIME
public static final int DEFAULT_FRAME_TIME- See Also:
-
UNKNOWN_SIZE
public static final int UNKNOWN_SIZE- See Also:
-
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
-