mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-14 13:14:44 +00:00
60 lines
1.1 KiB
Java
60 lines
1.1 KiB
Java
package noppes.npcs.api.handler.data;
|
|
|
|
public interface IAnimation {
|
|
|
|
IFrame currentFrame();
|
|
|
|
IFrame[] getFrames();
|
|
|
|
IAnimation setFrames(IFrame[] frames);
|
|
|
|
IAnimation clearFrames();
|
|
|
|
IAnimation addFrame(IFrame frame);
|
|
|
|
IAnimation addFrame(int index, IFrame frame);
|
|
|
|
IAnimation removeFrame(IFrame frame);
|
|
|
|
IAnimation setName(String name);
|
|
|
|
String getName();
|
|
|
|
IAnimation setSpeed(float speed);
|
|
|
|
float getSpeed();
|
|
|
|
IAnimation setSmooth(byte smooth);
|
|
|
|
byte isSmooth();
|
|
|
|
IAnimation useRenderTicks(boolean renderTicks);
|
|
|
|
boolean useRenderTicks();
|
|
|
|
IAnimation doWhileStanding(boolean whileStanding);
|
|
|
|
boolean doWhileStanding();
|
|
|
|
IAnimation doWhileMoving(boolean whileMoving);
|
|
|
|
boolean doWhileMoving();
|
|
|
|
IAnimation doWhileAttacking(boolean whileAttacking);
|
|
|
|
boolean doWhileAttacking();
|
|
|
|
IAnimation setLoop(int loopAtFrame);
|
|
|
|
int loop();
|
|
|
|
IAnimation save();
|
|
|
|
int getID();
|
|
|
|
/**
|
|
* Do not use this unless you know what you are changing. Dangerous to change.
|
|
*/
|
|
void setID(int id);
|
|
}
|