mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-13 04:17:36 +00:00
added tick duration read/write to nbt
This commit is contained in:
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){
|
||||
|
||||
Reference in new issue
Block a user