mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-12 03:47:27 +00:00
Added RGB and alpha powered texture modifiers:
setPoweredRGBA(r,g,b,alpha) getPoweredR(),getPoweredG(),getPoweredB(),getPoweredAlpha()
This commit is contained in:
1 parent
b7d2dab905
commit
fc1c16032f
5 files changed
+56
-4
No files matched your search
@@ -1032,4 +1032,25 @@ public class ScriptNpc<T extends EntityNPCInterface> extends ScriptLiving<T> imp
|
||||
public float getPoweredZ() {
|
||||
return npc.display.poweredTranslateZ;
|
||||
}
|
||||
|
||||
public void setPoweredRGBA(float r, float g, float b, float alpha) {
|
||||
npc.display.poweredRed = r;
|
||||
npc.display.poweredGreen = g;
|
||||
npc.display.poweredBlue = b;
|
||||
npc.display.poweredAlpha = alpha;
|
||||
npc.updateClient = true;
|
||||
}
|
||||
|
||||
public float getPoweredR() {
|
||||
return npc.display.poweredRed;
|
||||
}
|
||||
public float getPoweredG() {
|
||||
return npc.display.poweredGreen;
|
||||
}
|
||||
public float getPoweredB() {
|
||||
return npc.display.poweredBlue;
|
||||
}
|
||||
public float getPoweredAlpha() {
|
||||
return npc.display.poweredAlpha;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user