mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 04:57:27 +00:00
IAnimation instead of Animation
This commit is contained in:
1 parent
eb660b38ae
commit
db0aa94a3a
1 file changed
+6
-6
@@ -39,9 +39,9 @@ public class Animation implements IAnimation {
|
||||
|
||||
protected final Map<String, Object> dataStore = new HashMap<>();
|
||||
|
||||
public Consumer<Animation> onAnimationStart;
|
||||
public BiConsumer<Integer, Animation> onAnimationFrame;
|
||||
public Consumer<Animation> onAnimationEnd;
|
||||
public Consumer<IAnimation> onAnimationStart;
|
||||
public BiConsumer<Integer, IAnimation> onAnimationFrame;
|
||||
public Consumer<IAnimation> onAnimationEnd;
|
||||
|
||||
public Animation() {
|
||||
}
|
||||
@@ -319,19 +319,19 @@ public class Animation implements IAnimation {
|
||||
}
|
||||
|
||||
@Override
|
||||
public IAnimation onStart(Consumer<Animation> task) {
|
||||
public IAnimation onStart(Consumer<IAnimation> task) {
|
||||
this.onAnimationStart = task;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IAnimation onFrame(BiConsumer<Integer, Animation> task) {
|
||||
public IAnimation onFrame(BiConsumer<Integer, IAnimation> task) {
|
||||
this.onAnimationFrame = task;
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public IAnimation onEnd(Consumer<Animation> task) {
|
||||
public IAnimation onEnd(Consumer<IAnimation> task) {
|
||||
this.onAnimationEnd = task;
|
||||
return this;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user