aboutsummaryrefslogtreecommitdiff
path: root/src/Java/gtPlusPlus/xmod/gregtech/common/blocks/GregtechMetaCasingBlocks4.java
blob: 289424ab1b7db6e31d8ba628dd1994d8575ef382 (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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
package gtPlusPlus.xmod.gregtech.common.blocks;

import net.minecraft.item.ItemStack;
import net.minecraft.util.IIcon;

import gregtech.api.enums.TAE;
import gregtech.api.enums.Textures;
import gregtech.api.objects.GT_CopiedBlockTexture;
import gregtech.api.util.GT_LanguageManager;
import gregtech.common.blocks.GT_Material_Casings;

import gtPlusPlus.xmod.gregtech.api.enums.GregtechItemList;
import gtPlusPlus.xmod.gregtech.common.blocks.textures.TexturesGtBlock;


public class GregtechMetaCasingBlocks4
extends GregtechMetaCasingBlocksAbstract {

	public GregtechMetaCasingBlocks4() {
		super(GregtechMetaCasingItems.class, "gtplusplus.blockcasings.4", GT_Material_Casings.INSTANCE);
		for (byte i = 0; i < 16; i = (byte) (i + 1)) {
			TAE.registerTextures(new GT_CopiedBlockTexture(this, 6, i));
		}
		GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".0.name", "Naquadah Reactor Base"); //48
		GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".1.name", "Reactor Piping");
		GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".2.name", "Naquadah Containment Chamber");
		GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".3.name", "");
		GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".4.name", "");
		GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".5.name", "");
		GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".6.name", "");
		GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".7.name", "");
		GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".8.name", ""); 
		GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".9.name", "");
		GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".10.name", "");
		GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".11.name", "");
		GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".12.name", "");
		GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".13.name", "");
		GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".14.name", "");
		GT_LanguageManager.addStringLocalization(this.getUnlocalizedName() + ".15.name", " ");
		GregtechItemList.Casing_Naq_Reactor_A.set(new ItemStack(this, 1, 0));
		GregtechItemList.Casing_Naq_Reactor_B.set(new ItemStack(this, 1, 1));
		GregtechItemList.Casing_Naq_Reactor_C.set(new ItemStack(this, 1, 2));
		/*GregtechItemList.Casing_Refinery_Internal.set(new ItemStack(this, 1, 3));
		GregtechItemList.Casing_WashPlant.set(new ItemStack(this, 1, 4));
		GregtechItemList.Casing_Sifter.set(new ItemStack(this, 1, 5));
		GregtechItemList.Casing_SifterGrate.set(new ItemStack(this, 1, 6));
		GregtechItemList.Casing_Vanadium_Redox.set(new ItemStack(this, 1, 7));
		GregtechItemList.Casing_Power_SubStation.set(new ItemStack(this, 1, 8));
		GregtechItemList.Casing_Cyclotron_Coil.set(new ItemStack(this, 1, 9));
		GregtechItemList.Casing_Cyclotron_External.set(new ItemStack(this, 1, 10));
		GregtechItemList.Casing_ThermalContainment.set(new ItemStack(this, 1, 11));
		GregtechItemList.Casing_Autocrafter.set(new ItemStack(this, 1, 12));
		GregtechItemList.Casing_CuttingFactoryFrame.set(new ItemStack(this, 1, 13));
		GregtechItemList.Casing_TeslaTower.set(new ItemStack(this, 1, 14));
		GregtechItemList.Casing_PLACEHOLDER_TreeFarmer.set(new ItemStack(this, 1, 15));*/
	}

	@Override
	public IIcon getIcon(final int aSide, final int aMeta) { //Texture ID's. case 0 == ID[57]
		if ((aMeta >= 0) && (aMeta < 16)) {
			switch (aMeta) {
				//Centrifuge
				case 0:
					return TexturesGtBlock.Casing_Trinium_Titanium.getIcon();
					//Coke Oven Frame
				case 1:
					return TexturesGtBlock.TEXTURE_TECH_C.getIcon();
					//Coke Oven Casing Tier 1
				case 2:
					return TexturesGtBlock.TEXTURE_ORGANIC_PANEL_A_GLOWING.getIcon();
					//Coke Oven Casing Tier 2
				case 3:
					return TexturesGtBlock.Casing_Material_Grisium.getIcon();
					//Material Press Casings
				case 4:
					return TexturesGtBlock.Casing_Material_Grisium.getIcon();				
					//Sifter Structural
				case 5:
					return TexturesGtBlock.Casing_Machine_Metal_Panel_A.getIcon();
					//Sifter Sieve
				case 6:
					return TexturesGtBlock.Casing_Machine_Metal_Grate_A.getIcon();

					//Vanadium Radox Battery
				case 7:
					return TexturesGtBlock.Casing_Redox_1.getIcon();
					//Power Sub-Station Casing
				case 8:
					return TexturesGtBlock.Casing_Machine_Metal_Sheet_A.getIcon();
					//Cyclotron Coil
				case 9:
					return TexturesGtBlock.Overlay_Machine_Cyber_A.getIcon();
					//Cyclotron External Casing
				case 10:
					return Textures.BlockIcons.MACHINE_CASING_RADIATIONPROOF.getIcon();
					//Multitank Exterior Casing
				case 11:
					return TexturesGtBlock.Casing_Material_Tantalloy61.getIcon();
					//Reactor Casing I
				case 12:
					return TexturesGtBlock.Casing_Machine_Simple_Top.getIcon();
					//Reactor Casing II
				case 13:
					if (aSide <2) {
						return TexturesGtBlock.TEXTURE_TECH_A.getIcon();					
					}
					else {
						return TexturesGtBlock.TEXTURE_TECH_B.getIcon();					
					}
				case 14:
					return TexturesGtBlock.Casing_Material_RedSteel.getIcon();
				case 15:
					if (aSide <2) {
						if (aSide == 1) {
							return TexturesGtBlock.Casing_Machine_Podzol.getIcon();					
						}
						return TexturesGtBlock.Casing_Machine_Acacia_Log.getIcon();							
					}
					else {
						return TexturesGtBlock.Casing_Machine_Farm_Manager.getIcon();					
					}
				default:
					return TexturesGtBlock.Overlay_UU_Matter.getIcon();

			}
		}
		return TexturesGtBlock._PlaceHolder.getIcon();
	}
}