mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 06:04:45 +00:00
Added IAnimation consumers to API
This commit is contained in:
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);
|
||||
}
|
||||
Reference in new issue
Block a user