mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-18 11:29:11 +00:00
Animation overhaul, along with animation changes to the API.
This commit is contained in:
1 parent
1bff2eddfe
commit
33e471871a
10 files changed
+152
-180
No files matched your search
@@ -0,0 +1,48 @@
|
||||
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);
|
||||
|
||||
int getId();
|
||||
|
||||
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();
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
public interface IAnimationData {
|
||||
|
||||
void updateClient();
|
||||
|
||||
boolean isActive();
|
||||
|
||||
void setEnabled(boolean enabled);
|
||||
|
||||
boolean enabled();
|
||||
|
||||
void setAnimation(IAnimation animation);
|
||||
|
||||
IAnimation getAnimation();
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
public interface IFrame {
|
||||
|
||||
IFramePart[] getParts();
|
||||
|
||||
IFrame addPart(IFramePart partConfig);
|
||||
|
||||
IFrame removePart(String partName);
|
||||
|
||||
IFrame removePart(int partId);
|
||||
|
||||
IFrame clearParts();
|
||||
|
||||
int getDuration();
|
||||
|
||||
IFrame setDuration(int duration);
|
||||
|
||||
boolean isCustomized();
|
||||
|
||||
IFrame setCustomized(boolean customized);
|
||||
|
||||
float getSpeed();
|
||||
|
||||
IFrame setSpeed(float speed);
|
||||
|
||||
byte smoothType();
|
||||
|
||||
IFrame setSmooth(byte smooth);
|
||||
}
|
||||
@@ -0,0 +1,32 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
public interface IFramePart{
|
||||
|
||||
String getName();
|
||||
|
||||
int getPartId();
|
||||
|
||||
IFramePart setPart(String name);
|
||||
|
||||
IFramePart setPart(int partId);
|
||||
|
||||
int[] getRotations();
|
||||
|
||||
IFramePart setRotations(int[] rotation);
|
||||
|
||||
int[] getPivots();
|
||||
|
||||
IFramePart setPivots(int[] pivot);
|
||||
|
||||
boolean isCustomized();
|
||||
|
||||
IFramePart setCustomized(boolean customized);
|
||||
|
||||
float getSpeed();
|
||||
|
||||
IFramePart setSpeed(float speed);
|
||||
|
||||
byte isSmooth();
|
||||
|
||||
IFramePart setSmooth(byte smooth);
|
||||
}
|
||||
@@ -1,52 +0,0 @@
|
||||
package noppes.npcs.api.handler.data;
|
||||
|
||||
public interface IModelPart {
|
||||
|
||||
void setEnabled(boolean bo);
|
||||
|
||||
boolean isEnabled();
|
||||
|
||||
void setAnimated(boolean animated);
|
||||
|
||||
boolean isAnimated();
|
||||
|
||||
void setInterpolated(boolean interpolate);
|
||||
|
||||
boolean isInterpolated();
|
||||
|
||||
void setFullAngles(boolean limit);
|
||||
|
||||
boolean fullAngles();
|
||||
|
||||
void setAnimRate(float animRate);
|
||||
|
||||
float getAnimRate();
|
||||
|
||||
void setRotation(float rotationX, float rotationY, float rotationZ);
|
||||
|
||||
void setRotationX(float rotation);
|
||||
|
||||
void setRotationY(float rotation);
|
||||
|
||||
void setRotationZ(float rotation);
|
||||
|
||||
float getRotationX();
|
||||
|
||||
float getRotationY();
|
||||
|
||||
float getRotationZ();
|
||||
|
||||
void setOffset(float offsetX, float offsetY, float offsetZ);
|
||||
|
||||
void setOffsetX(float offset);
|
||||
|
||||
void setOffsetY(float offset);
|
||||
|
||||
void setOffsetZ(float offset);
|
||||
|
||||
float getOffsetX();
|
||||
|
||||
float getOffsetY();
|
||||
|
||||
float getOffsetZ();
|
||||
}
|
||||
Reference in new issue
Block a user