mirror of
https://github.com/KAMKEEL/CustomNPC-Plus-API.git
synced 2026-11-15 21:54:44 +00:00
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:
1 parent
b4ed688e61
commit
140b16d52f
6 files changed
+74
No files matched your search
@@ -8,6 +8,7 @@ package noppes.npcs.api.entity;
|
||||
import net.minecraft.entity.EntityCreature;
|
||||
import noppes.npcs.api.IPos;
|
||||
import noppes.npcs.api.ITimers;
|
||||
import noppes.npcs.api.entity.data.IModelData;
|
||||
import noppes.npcs.api.handler.IOverlayHandler;
|
||||
import noppes.npcs.api.handler.data.IAnimationData;
|
||||
import noppes.npcs.api.handler.data.IFaction;
|
||||
@@ -703,12 +704,18 @@ public interface ICustomNpc<T extends EntityCreature> extends IEntityLiving<T> {
|
||||
*/
|
||||
void executeCommand(String command);
|
||||
|
||||
IModelData getModelData();
|
||||
|
||||
@Deprecated
|
||||
void setHeadScale(float x, float y, float z);
|
||||
|
||||
@Deprecated
|
||||
void setBodyScale(float x, float y, float z);
|
||||
|
||||
@Deprecated
|
||||
void setArmsScale(float x, float y, float z);
|
||||
|
||||
@Deprecated
|
||||
void setLegsScale(float x, float y, float z);
|
||||
|
||||
/**
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
Reference in new issue
Block a user