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:53 -06:00
1 parent 974bf2ca66
commit 8905f5f42e
14 files changed
+325 -197

No files matched your search

@@ -10,7 +10,15 @@ public class ScriptJobPuppet extends ScriptJobInterface implements IJobPuppet {
private JobPuppet job;
public ScriptJobPuppet(EntityNPCInterface npc){
super(npc);
this.job = (JobPuppet) npc.jobInterface;
this.job = npc.display.modelData;
}
public void setEnabled(boolean enabled) {
this.job.enabled = enabled;
}
public boolean enabled() {
return this.job.enabled;
}
public IModelPart getPart(int part) {