Moved model scale parts into a single ModelScale class, similar to ModelRotate.

Added NPC model data interfaces to the API.
This commit is contained in:
Luis C.M committed 2023-03-17 02:36:27 -05:00
1 parent b4ed688e61
commit 140b16d52f
6 files changed
+74

No files matched your search

@@ -0,0 +1,16 @@
package noppes.npcs.api.entity.data;
public interface IModelData {
void enableRotation(boolean enableRotation);
boolean enableRotation();
IModelRotate getRotation();
IModelScale getScale();
void setEntity(String string);
String getEntity();
}
@@ -0,0 +1,18 @@
package noppes.npcs.api.entity.data;
public interface IModelRotate {
boolean whileStanding();
void whileStanding(boolean whileStanding);
boolean whileAttacking();
void whileAttacking(boolean whileAttacking);
boolean whileMoving();
void whileMoving(boolean whileMoving);
IModelRotatePart getPart(int part);
}
@@ -0,0 +1,16 @@
package noppes.npcs.api.entity.data;
public interface IModelRotatePart {
void setRotation(float x, float y, float z);
float getRotateX();
float getRotateY();
float getRotateZ();
void disabled(boolean enabled);
boolean disabled();
}
@@ -0,0 +1,5 @@
package noppes.npcs.api.entity.data;
public interface IModelScale {
IModelScalePart getPart(int part);
}
@@ -0,0 +1,12 @@
package noppes.npcs.api.entity.data;
public interface IModelScalePart {
void setScale(float x, float y, float z);
float getScaleX();
float getScaleY();
float getScaleZ();
}