mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-18 23:09:05 +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;
|
||||
}
|
||||
}
|
||||
@@ -707,4 +707,10 @@ public interface ICustomNpc<T extends EntityCreature> extends IEntityLiving<T> {
|
||||
public void setPoweredTexture(String poweredTexture);
|
||||
|
||||
public String getPoweredTexture();
|
||||
|
||||
public void setPoweredXYZ(float x, float y, float z);
|
||||
|
||||
public float getPoweredX();
|
||||
public float getPoweredY();
|
||||
public float getPoweredZ();
|
||||
}
|
||||
Reference in new issue
Block a user