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

@@ -1732,4 +1732,8 @@ public abstract class EntityNPCInterface extends EntityCreature implements IEnti
{
this.display.modelType = val;
}
public boolean hasPoweredTexture() {
return !("".equals(this.display.poweredTexture));
}
}