Gif loading

This commit is contained in:
2026-03-23 20:20:04 +01:00
parent ca42b00067
commit 34eb217747
5 changed files with 183 additions and 17 deletions
@@ -0,0 +1,37 @@
package org.saturnclient.cosmetics.utils;
import org.saturnclient.common.ref.asset.IdentifierRef;
/**
* Represents a single frame of an animated cloak.
*/
public class GifFrame {
private final IdentifierRef textureId;
private final int delayMs;
/**
* Creates a new animated cloak frame.
*
* @param textureId The texture identifier for this frame
* @param delayMs The delay in milliseconds before the next frame
*/
public GifFrame(IdentifierRef textureId, int delayMs) {
this.textureId = textureId;
this.delayMs = delayMs;
}
/**
* @return The texture identifier for this frame
*/
public IdentifierRef getTextureId() {
return textureId;
}
/**
* @return The delay in milliseconds before the next frame
*/
public int getDelayMs() {
return delayMs;
}
}