mirror of
https://github.com/KAMKEEL/CustomNPC-Plus.git
synced 2026-11-16 19:55:06 +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
@@ -43,6 +43,11 @@ public class DataDisplay {
|
||||
public float poweredTranslateY = 0.01F;
|
||||
public float poweredTranslateZ = 0.0F;
|
||||
|
||||
public float poweredRed = 1.0F;
|
||||
public float poweredGreen = 1.0F;
|
||||
public float poweredBlue = 1.0F;
|
||||
public float poweredAlpha = 1.0F;
|
||||
|
||||
public int visible = 0; //0:visible 1:Invisible 2:semi-invisible
|
||||
|
||||
public int modelSize = 5;
|
||||
@@ -114,6 +119,11 @@ public class DataDisplay {
|
||||
nbttagcompound.setFloat("PoweredY",poweredTranslateY);
|
||||
nbttagcompound.setFloat("PoweredZ",poweredTranslateZ);
|
||||
|
||||
nbttagcompound.setFloat("PoweredRed",poweredRed);
|
||||
nbttagcompound.setFloat("PoweredGreen",poweredGreen);
|
||||
nbttagcompound.setFloat("PoweredBlue",poweredBlue);
|
||||
nbttagcompound.setFloat("PoweredAlpha",poweredAlpha);
|
||||
|
||||
if (this.playerProfile != null)
|
||||
{
|
||||
NBTTagCompound nbttagcompound1 = new NBTTagCompound();
|
||||
@@ -171,6 +181,10 @@ public class DataDisplay {
|
||||
poweredTranslateX = nbttagcompound.getFloat("PoweredX");
|
||||
poweredTranslateY = nbttagcompound.getFloat("PoweredY");
|
||||
poweredTranslateZ = nbttagcompound.getFloat("PoweredZ");
|
||||
poweredRed = nbttagcompound.getFloat("PoweredRed");
|
||||
poweredGreen = nbttagcompound.getFloat("PoweredGreen");
|
||||
poweredBlue = nbttagcompound.getFloat("PoweredBlue");
|
||||
poweredAlpha = nbttagcompound.getFloat("PoweredAlpha");
|
||||
|
||||
modelSize = ValueUtil.CorrectInt(nbttagcompound.getInteger("Size"), 1, Integer.MAX_VALUE);
|
||||
modelType = nbttagcompound.getInteger("modelType");
|
||||
|
||||
Reference in new issue
Block a user