Added npc.setPoweredTexture(directory) and npc.getPoweredTexture() functions, along with a new powered texture resource.

Sample code:
npc.setPoweredTexture("customnpcs:textures/entity/npc_armor.png");
This commit is contained in:
luisc committed 2021-12-08 23:29:08 -06:00
1 parent 81881e6e19
commit ba4bf107b5
6 files changed
+63 -1

No files matched your search

@@ -1006,4 +1006,13 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
public String getOverlayTexture() {
return npc.display.glowTexture;
}
public void setPoweredTexture(String poweredTexture) {
npc.display.poweredTexture = poweredTexture;
npc.updateClient = true;
}
public String getPoweredTexture() {
return npc.display.poweredTexture;
}
}