Changed mixin to support players with animations better. Rotations and pivots are now saved as and use floats.

This commit is contained in:
Luis C.M committed 2023-01-17 13:08:09 -06:00
1 parent 33e471871a
commit 80c4e90fef
2 files changed
+8 -8

No files matched your search

+4 -4
View File
@@ -303,13 +303,13 @@ public abstract class AbstractNpcAPI {
public abstract IFramePart createPart(String name);
public abstract IFramePart createPart(String name, int[] rotation, int[] pivot);
public abstract IFramePart createPart(String name, float[] rotation, float[] pivot);
public abstract IFramePart createPart(String name, int[] rotation, int[] pivot, float speed, byte smooth);
public abstract IFramePart createPart(String name, float[] rotation, float[] pivot, float speed, byte smooth);
public abstract IFramePart createPart(int partId);
public abstract IFramePart createPart(int partId, int[] rotation, int[] pivot);
public abstract IFramePart createPart(int partId, float[] rotation, float[] pivot);
public abstract IFramePart createPart(int partId, int[] rotation, int[] pivot, float speed, byte smooth);
public abstract IFramePart createPart(int partId, float[] rotation, float[] pivot, float speed, byte smooth);
}
@@ -10,13 +10,13 @@ public interface IFramePart{
IFramePart setPart(int partId);
int[] getRotations();
float[] getRotations();
IFramePart setRotations(int[] rotation);
IFramePart setRotations(float[] rotation);
int[] getPivots();
float[] getPivots();
IFramePart setPivots(int[] pivot);
IFramePart setPivots(float[] pivot);
boolean isCustomized();