blob: 5044f958c890ce0907c6a908a1c34fc818676bf7 (
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
package gtPlusPlus.xmod.gregtech.common.blocks.textures;
import gregtech.api.GregTech_API;
import gregtech.api.interfaces.IIconContainer;
import gtPlusPlus.core.lib.CORE;
import gtPlusPlus.core.util.Utils;
import net.minecraft.client.renderer.texture.TextureMap;
import net.minecraft.util.IIcon;
import net.minecraft.util.ResourceLocation;
public class TexturesGtBlocks {
/*
* Handles Custom Textures.
*/
public static class CustomIcon implements IIconContainer, Runnable {
protected IIcon mIcon;
protected String mIconName;
public CustomIcon(String aIconName) {
mIconName = aIconName;
Utils.LOG_INFO("Constructing a Custom Texture. " + mIconName);
GregTech_API.sGTBlockIconload.add(this);
}
@Override
public IIcon getIcon() {
return mIcon;
}
@Override
public IIcon getOverlayIcon() {
return null;
}
@Override
public void run() {
mIcon = GregTech_API.sBlockIcons.registerIcon(CORE.MODID + ":" + mIconName);
Utils.LOG_INFO("FIND ME _ Processing texture: "+this.getTextureFile().getResourcePath());
}
@Override
public ResourceLocation getTextureFile() {
return TextureMap.locationBlocksTexture;
}
}
/*
* Add Some Custom Textures below.
* I am not sure whether or not I need to declare them as such, but better to be safe than sorry.
* Right?
*/
//Machine Casings
private static final CustomIcon Internal_Casing_Machine_Dimensional = new CustomIcon("TileEntities/adv_machine_dimensional");
public static final CustomIcon Casing_Machine_Dimensional = Internal_Casing_Machine_Dimensional;
private static final CustomIcon Internal_Casing_Machine_Dimensional_Adv = new CustomIcon("TileEntities/high_adv_machine_dimensional");
public static final CustomIcon Casing_Machine_Dimensional_Adv = Internal_Casing_Machine_Dimensional_Adv;
//Computer Screens
private static final CustomIcon Internal_Casing_Machine_Screen_1 = new CustomIcon("TileEntities/adv_machine_screen_random1");
public static final CustomIcon Casing_Machine_Screen_1 = Internal_Casing_Machine_Screen_1;
private static final CustomIcon Internal_Casing_Machine_Screen_2 = new CustomIcon("TileEntities/adv_machine_screen_random2");
public static final CustomIcon Casing_Machine_Screen_2 = Internal_Casing_Machine_Screen_2;
private static final CustomIcon Internal_Casing_Machine_Screen_3 = new CustomIcon("TileEntities/adv_machine_screen_random3");
public static final CustomIcon Casing_Machine_Screen_3 = Internal_Casing_Machine_Screen_3;
private static final CustomIcon Internal_Casing_Machine_Screen_Frequency = new CustomIcon("TileEntities/adv_machine_screen_frequency");
public static final CustomIcon Casing_Machine_Screen_Frequency = Internal_Casing_Machine_Screen_Frequency;
}
|