mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-17 16:55:15 +00:00
Animation events API changes
This commit is contained in:
1 parent
17d165e628
commit
8ced18ec84
6 files changed
+66
-6
No files matched your search
@@ -2,6 +2,8 @@ package noppes.npcs.api.handler.data;
|
||||
|
||||
public interface IAnimation {
|
||||
|
||||
IAnimationData getParent();
|
||||
|
||||
IFrame currentFrame();
|
||||
|
||||
IFrame[] getFrames();
|
||||
@@ -20,6 +22,10 @@ public interface IAnimation {
|
||||
|
||||
String getName();
|
||||
|
||||
int tickDuration();
|
||||
|
||||
IAnimation setTickDuration(int tickDuration);
|
||||
|
||||
IAnimation setSpeed(float speed);
|
||||
|
||||
float getSpeed();
|
||||
@@ -28,10 +34,6 @@ public interface IAnimation {
|
||||
|
||||
byte isSmooth();
|
||||
|
||||
IAnimation useRenderTicks(boolean renderTicks);
|
||||
|
||||
boolean useRenderTicks();
|
||||
|
||||
IAnimation doWhileStanding(boolean whileStanding);
|
||||
|
||||
boolean doWhileStanding();
|
||||
@@ -56,4 +58,6 @@ public interface IAnimation {
|
||||
* Do not use this unless you know what you are changing. Dangerous to change.
|
||||
*/
|
||||
void setID(int id);
|
||||
|
||||
long getTotalTime();
|
||||
}
|
||||
@@ -1,11 +1,17 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
import noppes.npcs.api.entity.IAnimatable;
|
||||
|
||||
public interface IAnimationData {
|
||||
|
||||
IAnimatable getEntity();
|
||||
|
||||
void updateClient();
|
||||
|
||||
boolean isActive();
|
||||
|
||||
boolean isClientAnimating();
|
||||
|
||||
void setEnabled(boolean enabled);
|
||||
|
||||
boolean enabled();
|
||||
@@ -13,4 +19,6 @@ public interface IAnimationData {
|
||||
void setAnimation(IAnimation animation);
|
||||
|
||||
IAnimation getAnimation();
|
||||
|
||||
long getAnimatingTime();
|
||||
}
|
||||
Reference in new issue
Block a user