blob: 8090ce7cb936d6dbdd88b55214ec19c58c36a216 (
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
package gregtech.api.interfaces;
import static gregtech.api.enums.GT_Values.UNCOLORED_RBGA;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;
import net.minecraft.util.IIcon;
import net.minecraft.util.ResourceLocation;
public interface IIconContainer {
/**
* @return A regular Icon.
*/
@SideOnly(Side.CLIENT)
IIcon getIcon();
/**
* @return Icon of the Overlay (or null if there is no Icon)
*/
@SideOnly(Side.CLIENT)
IIcon getOverlayIcon();
/**
* @return the Amount of Render Passes for this Icon.
*/
@SideOnly(Side.CLIENT)
default int getIconPasses() {
return 1;
}
;
/**
* @return the Default Texture File for this Icon.
*/
@SideOnly(Side.CLIENT)
ResourceLocation getTextureFile();
@SideOnly(Side.CLIENT)
public default short[] getIconColor(int aRenderPass) {
return UNCOLORED_RBGA;
}
@SideOnly(Side.CLIENT)
public default boolean isUsingColorModulation(int aRenderPass) {
return aRenderPass == 0;
}
}
|