Renamed to moveFromGlobalToLocal

This commit is contained in:
bigguy345 committed 2026-01-05 20:32:18 +02:00
1 parent e8ef60deb4
commit 60af203165
2 files changed
+5 -2

No files matched your search

@@ -360,7 +360,7 @@ public class Animation implements IAnimation {
* to the new local instance on entity's AnimationData,
* and clear them from the global instance.
*/
public void takeTasksFrom(Animation animation) {
public void moveFromGlobalToLocal(Animation animation) {
this.onAnimationStart = animation.onAnimationStart;
this.onAnimationFrame = animation.onAnimationFrame;
this.onAnimationEnd = animation.onAnimationEnd;
@@ -368,6 +368,9 @@ public class Animation implements IAnimation {
animation.onAnimationEnd = null;
animation.onAnimationFrame = null;
animation.onAnimationStart = null;
this.dataStore.putAll(animation.dataStore);
animation.dataStore.clear();
}
@@ -272,7 +272,7 @@ public class AnimationData implements IAnimationData {
newAnim.currentFrame = 0;
newAnim.currentFrameTime = 0;
newAnim.parent = this;
newAnim.takeTasksFrom((Animation) animation);
newAnim.moveFromGlobalToLocal((Animation) animation);
}