mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 22:15:06 +00:00
Added parameters for texture translation when the NPC is powered, namely npc.display.poweredTranslateX, poweredTranslateY, and poweredTranslateZ, which can all be changed by setPoweredXYZ(x,y,z), and gotten with getPoweredX(), getPoweredY(), and getPoweredZ().
This commit is contained in:
1 parent
9560228ba8
commit
b7d2dab905
5 files changed
+50
-10
No files matched your search
@@ -1015,4 +1015,21 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
|
||||
public String getPoweredTexture() {
|
||||
return npc.display.poweredTexture;
|
||||
}
|
||||
|
||||
public void setPoweredXYZ(float x, float y, float z) {
|
||||
npc.display.poweredTranslateX = x;
|
||||
npc.display.poweredTranslateY = y;
|
||||
npc.display.poweredTranslateZ = z;
|
||||
npc.updateClient = true;
|
||||
}
|
||||
|
||||
public float getPoweredX() {
|
||||
return npc.display.poweredTranslateX;
|
||||
}
|
||||
public float getPoweredY() {
|
||||
return npc.display.poweredTranslateY;
|
||||
}
|
||||
public float getPoweredZ() {
|
||||
return npc.display.poweredTranslateZ;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user