add spring water
This commit is contained in:
parent
1ae189c238
commit
4a6da6d0f7
10 changed files with 28 additions and 21 deletions
|
@ -68,10 +68,10 @@ public class TextureWaterFX extends TextureTicked
|
|||
f1 = 0.0F;
|
||||
}
|
||||
float f2 = f1 * f1;
|
||||
int l1 = (int)(32F + f2 * 32F);
|
||||
int j2 = (int)(50F + f2 * 64F);
|
||||
int k2 = 255;
|
||||
int l2 = (int)(146F + f2 * 50F);
|
||||
int r = (int)(32F + f2 * 32F);
|
||||
int g = (int)(50F + f2 * 64F);
|
||||
int b = 255;
|
||||
int a = (int)(146F + f2 * 50F);
|
||||
// if(flag)
|
||||
// {
|
||||
// int i3 = (l1 * 30 + j2 * 59 + k2 * 11) / 100;
|
||||
|
@ -81,7 +81,7 @@ public class TextureWaterFX extends TextureTicked
|
|||
// j2 = j3;
|
||||
// k2 = k3;
|
||||
// }
|
||||
textureData[i1] = (l2 << 24) | (l1 << 16) | (j2 << 8) | k2;
|
||||
textureData[i1] = (a << 24) | (r << 16) | (g << 8) | b;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -67,11 +67,11 @@ public class TextureWaterFlowFX extends TextureTicked
|
|||
{
|
||||
f1 = 0.0F;
|
||||
}
|
||||
float f2 = f1 * f1;
|
||||
int l1 = (int)(32F + f2 * 32F);
|
||||
int j2 = (int)(50F + f2 * 64F);
|
||||
int k2 = 255;
|
||||
int l2 = (int)(146F + f2 * 50F);
|
||||
float v = f1 * f1;
|
||||
int r = (int)(32F + v * 32F);
|
||||
int g = (int)(50F + v * 64F);
|
||||
int b = 255;
|
||||
int a = (int)(146F + v * 50F);
|
||||
// if(flag)
|
||||
// {
|
||||
// int i3 = (l1 * 30 + j2 * 59 + k2 * 11) / 100;
|
||||
|
@ -83,7 +83,7 @@ public class TextureWaterFlowFX extends TextureTicked
|
|||
// }
|
||||
textureData[(i1 & 0x0f) | ((i1 & 0xf0) * 2)] = textureData[((i1 & 0x0f) + 16) | ((i1 & 0xf0) * 2)] =
|
||||
textureData[(i1 & 0x0f) | (((i1 & 0xf0) + 256) * 2)] = textureData[((i1 & 0x0f) + 16) | (((i1 & 0xf0) + 256) * 2)] =
|
||||
(l2 << 24) | (l1 << 16) | (j2 << 8) | k2;
|
||||
(a << 24) | (r << 16) | (g << 8) | b;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
BIN
client/src/main/resources/textures/blocks/springwater_flow.png
Executable file
BIN
client/src/main/resources/textures/blocks/springwater_flow.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
BIN
client/src/main/resources/textures/blocks/springwater_still.png
Executable file
BIN
client/src/main/resources/textures/blocks/springwater_still.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 18 KiB |
BIN
client/src/main/resources/textures/items/springwater_bucket.png
Executable file
BIN
client/src/main/resources/textures/items/springwater_bucket.png
Executable file
Binary file not shown.
After Width: | Height: | Size: 4.9 KiB |
Loading…
Add table
Add a link
Reference in a new issue