Moved NPC puppet data to display data.

Improved mixin functionality, offsets and rotations always reset if the puppet "job" (not a job anymore, always in display) is disabled.
This commit is contained in:
Luis C.M committed 2023-01-11 19:12:52 -06:00
1 parent a3961fe071
commit 1bff2eddfe
2 files changed
+7

No files matched your search

@@ -12,6 +12,7 @@ import noppes.npcs.api.handler.IOverlayHandler;
import noppes.npcs.api.handler.data.IFaction;
import noppes.npcs.api.item.IItemStack;
import noppes.npcs.api.jobs.IJob;
import noppes.npcs.api.jobs.IJobPuppet;
import noppes.npcs.api.roles.IRole;
public interface ICustomNpc<T extends EntityCreature> extends IEntityLiving<T> {
@@ -208,6 +209,8 @@ public interface ICustomNpc<T extends EntityCreature> extends IEntityLiving<T> {
*/
void reset();
IJobPuppet getModelData();
/**
* @return Returns the npcs current role
*/
@@ -4,6 +4,10 @@ import noppes.npcs.api.handler.data.IModelPart;
public interface IJobPuppet extends IJob {
void setEnabled(boolean enabled);
boolean enabled();
IModelPart getPart(int part);
void allEnabled(boolean enabled);