mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 18:54:53 +00:00
Changes to the animation GUI and part/frame saving.
This commit is contained in:
1 parent
b8dc090db8
commit
79e13dfade
5 files changed
+48
-10
No files matched your search
@@ -165,4 +165,19 @@ public class Frame implements IFrame {
|
||||
compound.setTag("FrameParts", list);
|
||||
return compound;
|
||||
}
|
||||
|
||||
public Frame copy() {
|
||||
Frame frame = new Frame(this.duration);
|
||||
HashMap<EnumAnimationPart,FramePart> frameParts = this.frameParts;
|
||||
for (Map.Entry<EnumAnimationPart,FramePart> entry : frameParts.entrySet()) {
|
||||
frame.frameParts.put(entry.getKey(),entry.getValue().copy());
|
||||
}
|
||||
frame.parent = this.parent;
|
||||
frame.duration = this.duration;
|
||||
frame.customized = this.customized;
|
||||
frame.speed = this.speed;
|
||||
frame.smooth = this.smooth;
|
||||
frame.renderTicks = this.renderTicks;
|
||||
return frame;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user