mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 18:57:32 +00:00
Added IAnimation consumers to API
This commit is contained in:
1 parent
a39178c75b
commit
eb660b38ae
2 files changed
+6
-3
No files matched your search
@@ -318,16 +318,19 @@ public class Animation implements IAnimation {
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public IAnimation onStart(Consumer<Animation> task) {
|
||||
this.onAnimationStart = task;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public IAnimation onFrame(BiConsumer<Integer, Animation> task) {
|
||||
this.onAnimationFrame = task;
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public IAnimation onEnd(Consumer<Animation> task) {
|
||||
this.onAnimationEnd = task;
|
||||
return this;
|
||||
|
||||
Reference in new issue
Block a user