mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-17 18:05:10 +00:00
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:
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));
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user