added tick duration read/write to nbt

This commit is contained in:
Luis C.M committed 2024-03-24 03:31:56 -05:00
1 parent a1fa0564c3
commit fab170a9c9
2 files changed
+6 -1

No files matched your search

@@ -182,6 +182,7 @@ public class Animation implements IAnimation {
speed = compound.getFloat("Speed");
smooth = compound.getByte("Smooth");
loop = compound.getInteger("Loop");
tickDuration = compound.getInteger("TickDuration");
ArrayList<Frame> frames = new ArrayList<Frame>();
NBTTagList list = compound.getTagList("Frames", 10);
@@ -206,6 +207,7 @@ public class Animation implements IAnimation {
compound.setFloat("Speed", speed);
compound.setByte("Smooth", smooth);
compound.setInteger("Loop",loop);
compound.setInteger("TickDuration", tickDuration);
NBTTagList list = new NBTTagList();
for(Frame frame : frames){