From ba5639c68970fa97c65fe493c6ec018621c9484d Mon Sep 17 00:00:00 2001 From: Leo dev Date: Sat, 1 Mar 2025 03:33:31 +0100 Subject: [PATCH] small changes --- .../cloaks/utils/AnimatedCloakData.java | 36 +++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 src/main/java/org/auraclient/auraclient/cloaks/utils/AnimatedCloakData.java diff --git a/src/main/java/org/auraclient/auraclient/cloaks/utils/AnimatedCloakData.java b/src/main/java/org/auraclient/auraclient/cloaks/utils/AnimatedCloakData.java new file mode 100644 index 0000000..004929e --- /dev/null +++ b/src/main/java/org/auraclient/auraclient/cloaks/utils/AnimatedCloakData.java @@ -0,0 +1,36 @@ +package org.auraclient.auraclient.cloaks.utils; + +import net.minecraft.util.Identifier; + +/** + * Represents a single frame of an animated cloak. + */ +public class AnimatedCloakData { + private final Identifier 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(Identifier textureId, int delayMs) { + this.textureId = textureId; + this.delayMs = delayMs; + } + + /** + * @return The texture identifier for this frame + */ + public Identifier getTextureId() { + return textureId; + } + + /** + * @return The delay in milliseconds before the next frame + */ + public int getDelayMs() { + return delayMs; + } +}