mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-17 01:45:08 +00:00
Merge branch 'dev' into player-anims
This commit is contained in:
commit
6684442549
3 files changed
+75
-25
No files matched your search
@@ -46,6 +46,16 @@ public interface ICustomNpc<T extends EntityCreature> extends IEntityLiving<T> {
|
||||
|
||||
int getRotationType();
|
||||
|
||||
/**
|
||||
* @param movingType The moving type of the npc. 0 = standing, 1 = wandering, 2 = moving path
|
||||
*/
|
||||
public void setMovingType(int movingType);
|
||||
|
||||
/**
|
||||
* @return The moving type of the npc. 0 = standing, 1 = wandering, 2 = moving path
|
||||
*/
|
||||
public int getMovingType();
|
||||
|
||||
/**
|
||||
* @param name The name of the npc
|
||||
*/
|
||||
|
||||
@@ -0,0 +1,52 @@
|
||||
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();
|
||||
}
|
||||
@@ -1,23 +1,19 @@
|
||||
package noppes.npcs.api.jobs;
|
||||
|
||||
import noppes.npcs.api.handler.data.IModelPart;
|
||||
|
||||
public interface IJobPuppet extends IJob {
|
||||
|
||||
void setAnimated(boolean animated);
|
||||
IModelPart getPart(int part);
|
||||
|
||||
boolean isAnimated();
|
||||
void setAnimated(boolean animated);
|
||||
|
||||
void setInterpolated(boolean interpolate);
|
||||
|
||||
boolean isInterpolated();
|
||||
|
||||
void setFullAngles(boolean limit);
|
||||
|
||||
boolean fullAngles();
|
||||
void setFullAngles(boolean fullAngles);
|
||||
|
||||
void setAnimRate(float animRate);
|
||||
|
||||
float getAnimRate();
|
||||
|
||||
void doWhileStanding(boolean whileStanding);
|
||||
|
||||
boolean doWhileStanding();
|
||||
@@ -30,35 +26,27 @@ public interface IJobPuppet extends IJob {
|
||||
|
||||
boolean doWhileMoving();
|
||||
|
||||
void setRotation(int part, float rotationX, float rotationY, float rotationZ);
|
||||
|
||||
@Deprecated
|
||||
void setRotationX(int part, float rotation);
|
||||
|
||||
@Deprecated
|
||||
void setRotationY(int part, float rotation);
|
||||
|
||||
@Deprecated
|
||||
void setRotationZ(int part, float rotation);
|
||||
|
||||
@Deprecated
|
||||
float getRotationX(int part);
|
||||
|
||||
@Deprecated
|
||||
float getRotationY(int part);
|
||||
|
||||
@Deprecated
|
||||
float getRotationZ(int part);
|
||||
|
||||
void setOffset(int part, float offsetX, float offsetY, float offsetZ);
|
||||
|
||||
void setOffsetX(int part, float offset);
|
||||
|
||||
void setOffsetY(int part, float offset);
|
||||
|
||||
void setOffsetZ(int part, float offset);
|
||||
|
||||
float getOffsetX(int part);
|
||||
|
||||
float getOffsetY(int part);
|
||||
|
||||
float getOffsetZ(int part);
|
||||
|
||||
@Deprecated
|
||||
boolean isEnabled(int part);
|
||||
|
||||
@Deprecated
|
||||
void setEnabled(int part, boolean bo);
|
||||
}
|
||||
Reference in new issue
Block a user