Added getAnimatingTime() function to AnimationData.

This commit is contained in:
luisc committed 2024-04-05 13:20:44 -05:00
1 parent 8b3571339b
commit 17c81c512f
2 files changed
+16 -5

No files matched your search

@@ -250,9 +250,9 @@ public class Animation implements IAnimation {
return compound;
}
public void increaseTime() {
public boolean increaseTime() {
if (paused)
return;
return false;
if (this.parent != null && this.currentFrame < this.frames.size()) {
this.parent.finishedFrame = this.currentFrame;
@@ -289,6 +289,8 @@ public class Animation implements IAnimation {
this.parent.finishedTime = this.parent.getMCEntity().getAge();
}
}
return true;
}
@SideOnly(Side.CLIENT)