From 5b34d3eb374d0260402c9ed17012192ca7d26bf4 Mon Sep 17 00:00:00 2001 From: Klesti Selimaj Date: Sun, 8 Mar 2026 11:29:30 +0100 Subject: [PATCH] Moving cloaks to common --- .../cosmetics/utils/AnimatedCloakData.java | 37 +++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 src/main/java/org/saturnclient/cosmetics/utils/AnimatedCloakData.java diff --git a/src/main/java/org/saturnclient/cosmetics/utils/AnimatedCloakData.java b/src/main/java/org/saturnclient/cosmetics/utils/AnimatedCloakData.java new file mode 100644 index 0000000..70cebdf --- /dev/null +++ b/src/main/java/org/saturnclient/cosmetics/utils/AnimatedCloakData.java @@ -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 AnimatedCloakData { + + 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 AnimatedCloakData(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; + } +} \ No newline at end of file