mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-16 14:14:48 +00:00
Removed animation IDs, added animation controller.
This commit is contained in:
1 parent
3fc57912de
commit
f2ed18621c
3 files changed
+19
-4
No files matched your search
@@ -84,6 +84,8 @@ public abstract class AbstractNpcAPI {
|
||||
|
||||
public abstract ITransportHandler getLocations();
|
||||
|
||||
public abstract IAnimationHandler getAnimations();
|
||||
|
||||
public abstract String[] getAllBiomeNames();
|
||||
|
||||
public abstract ICustomNpc<?> createNPC(IWorld var1);
|
||||
@@ -295,9 +297,9 @@ public abstract class AbstractNpcAPI {
|
||||
|
||||
public abstract String ticksToTime(long ticks);
|
||||
|
||||
public abstract IAnimation createAnimation(int id, String name);
|
||||
public abstract IAnimation createAnimation(String name);
|
||||
|
||||
public abstract IAnimation createAnimation(int id, String name, float speed, byte smooth);
|
||||
public abstract IAnimation createAnimation(String name, float speed, byte smooth);
|
||||
|
||||
public abstract IFrame createFrame(int duration);
|
||||
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
package noppes.npcs.api.handler;
|
||||
|
||||
import noppes.npcs.api.handler.data.IAnimation;
|
||||
|
||||
public interface IAnimationHandler {
|
||||
IAnimation saveAnimation(IAnimation animation);
|
||||
|
||||
void delete(String name);
|
||||
|
||||
IAnimation get(String name);
|
||||
|
||||
IAnimation[] getAnimations();
|
||||
}
|
||||
@@ -16,8 +16,6 @@ public interface IAnimation {
|
||||
|
||||
IAnimation removeFrame(IFrame frame);
|
||||
|
||||
int getId();
|
||||
|
||||
IAnimation setName(String name);
|
||||
|
||||
String getName();
|
||||
@@ -49,4 +47,6 @@ public interface IAnimation {
|
||||
IAnimation setLoop(int loopAtFrame);
|
||||
|
||||
int loop();
|
||||
|
||||
IAnimation save();
|
||||
}
|
||||
Reference in new issue
Block a user