-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathColorizerFoliage.java
More file actions
61 lines (52 loc) · 1.44 KB
/
ColorizerFoliage.java
File metadata and controls
61 lines (52 loc) · 1.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
package net.minecraft.src;
// Decompiled by Jad v1.5.8g. Copyright 2001 Pavel Kouznetsov.
// Jad home page: http://www.kpdus.com/jad.html
// Decompiler options: packimports(3) braces deadcode
import java.awt.image.BufferedImage;
import javax.imageio.ImageIO;
public class ColorizerFoliage
{
public ColorizerFoliage()
{
}
public static int func_4146_a(double d, double d1)
{
d1 *= d;
int i = (int)((1.0D - d) * 255D);
int j = (int)((1.0D - d1) * 255D);
return field_6529_a[j << 8 | i];
}
public static int func_21175_a()
{
return 0x619961;
}
public static int func_21174_b()
{
return 0x80a755;
}
static Class _mthclass$(String s)
{
try
{
return Class.forName(s);
}
catch(ClassNotFoundException classnotfoundexception)
{
throw new NoClassDefFoundError(classnotfoundexception.getMessage());
}
}
private static final int field_6529_a[];
static
{
field_6529_a = new int[0x10000];
try
{
BufferedImage bufferedimage = ImageIO.read((ColorizerFoliage.class).getResource("/misc/foliagecolor.png"));
bufferedimage.getRGB(0, 0, 256, 256, field_6529_a, 0, 256);
}
catch(Exception exception)
{
exception.printStackTrace();
}
}
}