blob: abb2e28051068d0578c12de8d89f12a707f70dc9 (
plain)
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
|
package gregtech.api.objects;
import gregtech.api.enums.Dyes;
import gregtech.api.interfaces.IColorModulationContainer;
import gregtech.api.interfaces.IIconContainer;
import gregtech.api.interfaces.ITexture;
@Deprecated
public class GTRenderedTexture extends gregtech.common.render.GTRenderedTexture
implements ITexture, IColorModulationContainer {
@Deprecated
public short[] mRGBa;
public GTRenderedTexture(IIconContainer aIcon, short[] aRGBa, boolean aAllowAlpha) {
super(aIcon, aRGBa, aAllowAlpha, false, true, false);
if (aRGBa.length != 4) throw new IllegalArgumentException("RGBa doesn't have 4 Values @ GTRenderedTexture");
mRGBa = aRGBa;
}
public GTRenderedTexture(IIconContainer aIcon, short[] aRGBa) {
this(aIcon, aRGBa, true);
}
public GTRenderedTexture(IIconContainer aIcon) {
this(aIcon, Dyes._NULL.mRGBa);
}
@Override
public boolean isOldTexture() {
return true;
}
}
|