Added IAnimation consumers to API

This commit is contained in:
bigguy345 committed 2026-01-05 17:14:44 +02:00
1 parent aefae8ace3
commit 801d62c060
1 file changed
+11
@@ -1,5 +1,10 @@
package noppes.npcs.api.handler.data;
import noppes.npcs.controllers.data.Animation;
import java.util.function.BiConsumer;
import java.util.function.Consumer;
public interface IAnimation {
IAnimationData getParent();
@@ -64,4 +69,10 @@ public interface IAnimation {
IAnimation setData(String key, Object v);
IAnimation removeData(String key);
IAnimation onStart(Consumer<Animation> task);
IAnimation onFrame(BiConsumer<Integer, Animation> task);
IAnimation onEnd(Consumer<Animation> task);
}