blob: dd205136bf43ee046a4949d5d4c110e75cb34fb9 (
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
|
package gtPlusPlus.xmod.gregtech.common.blocks.textures;
import net.minecraft.util.IIcon;
import gregtech.api.enums.Textures;
public class CasingTextureHandler2 {
public static IIcon getIcon(final int ordinalSide, final int aMeta) { // Texture ID's. case 0 == ID[57]
if ((aMeta >= 0) && (aMeta < 16)) {
switch (aMeta) {
case 0 -> {
return TexturesGtBlock.Casing_Material_RedSteel.getIcon();
}
case 1 -> {
return TexturesGtBlock.Casing_Material_HastelloyX.getIcon();
}
case 2 -> {
return TexturesGtBlock.Casing_Material_HastelloyN.getIcon();
}
case 3 -> {
return TexturesGtBlock.Casing_Material_Fluid_IncoloyDS.getIcon();
}
case 4 -> {
return TexturesGtBlock.Casing_Material_Grisium.getIcon();
}
case 5 -> {
return TexturesGtBlock.Casing_Machine_Metal_Panel_A.getIcon();
}
case 6 -> {
return TexturesGtBlock.Casing_Machine_Metal_Grate_A.getIcon();
}
case 7 -> {
return TexturesGtBlock.Casing_Redox_1.getIcon();
}
case 8 -> {
return TexturesGtBlock.Casing_Machine_Metal_Sheet_A.getIcon();
}
case 9 -> {
return TexturesGtBlock.Overlay_Machine_Cyber_A.getIcon();
}
case 10 -> {
return Textures.BlockIcons.MACHINE_CASING_RADIATIONPROOF.getIcon();
}
case 11 -> {
return TexturesGtBlock.Casing_Material_Tantalloy61.getIcon();
}
case 12 -> {
return TexturesGtBlock.Casing_Machine_Simple_Top.getIcon();
}
case 13 -> {
if (ordinalSide < 2) {
return TexturesGtBlock.TEXTURE_TECH_A.getIcon();
} else {
return TexturesGtBlock.TEXTURE_TECH_B.getIcon();
}
}
case 14 -> {
return Textures.BlockIcons.RENDERING_ERROR.getIcon();
}
case 15 -> {
return TexturesGtBlock.Sterile_Casing.getIcon();
}
default -> {
return TexturesGtBlock.Overlay_UU_Matter.getIcon();
}
}
}
return TexturesGtBlock._PlaceHolder.getIcon();
}
}
|