2016-07-18 06:06:26 +00:00
|
|
|
package gregtech.common.blocks;
|
|
|
|
|
2016-10-23 09:59:59 +00:00
|
|
|
import com.google.common.collect.ImmutableList;
|
|
|
|
import net.minecraft.client.renderer.block.model.BakedQuad;
|
2016-08-10 19:43:37 +00:00
|
|
|
import net.minecraft.client.renderer.texture.TextureAtlasSprite;
|
|
|
|
import net.minecraft.util.EnumFacing;
|
2016-08-07 08:41:30 +00:00
|
|
|
import net.minecraftforge.fml.relauncher.Side;
|
|
|
|
import net.minecraftforge.fml.relauncher.SideOnly;
|
2016-07-18 06:06:26 +00:00
|
|
|
import gregtech.api.enums.ItemList;
|
|
|
|
import gregtech.api.enums.Textures;
|
|
|
|
import gregtech.api.objects.GT_CopiedBlockTexture;
|
|
|
|
import gregtech.api.util.GT_LanguageManager;
|
|
|
|
import net.minecraft.item.ItemStack;
|
|
|
|
|
2016-08-10 19:43:37 +00:00
|
|
|
public class GT_Block_Casings5 extends GT_Block_Casings_Abstract {
|
|
|
|
|
2016-07-18 06:06:26 +00:00
|
|
|
public GT_Block_Casings5() {
|
|
|
|
super(GT_Item_Casings5.class, "gt.blockcasings5", GT_Material_Casings.INSTANCE);
|
|
|
|
for (byte i = 0; i < 16; i = (byte) (i + 1)) {
|
|
|
|
Textures.BlockIcons.CASING_BLOCKS[(i + 64)] = new GT_CopiedBlockTexture(this, 6, i);
|
|
|
|
}
|
2016-07-18 07:05:44 +00:00
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".0.name", "Cupronickel Coil Block");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".1.name", "Kanthal Coil Block");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".2.name", "Nichrome Coil Block");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".3.name", "Tungstensteel Coil Block");
|
2016-07-21 05:48:22 +00:00
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".4.name", "HSS-G Coil Block");
|
2016-07-20 07:27:47 +00:00
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".5.name", "Naquadah Coil Block");
|
|
|
|
GT_LanguageManager.addStringLocalization(getUnlocalizedName() + ".6.name", "Naquadah Alloy Coil Block");
|
2016-07-18 06:06:26 +00:00
|
|
|
|
2016-07-18 07:05:44 +00:00
|
|
|
ItemList.Casing_Coil_Cupronickel.set(new ItemStack(this, 1, 0));
|
|
|
|
ItemList.Casing_Coil_Kanthal.set(new ItemStack(this, 1, 1));
|
|
|
|
ItemList.Casing_Coil_Nichrome.set(new ItemStack(this, 1, 2));
|
|
|
|
ItemList.Casing_Coil_TungstenSteel.set(new ItemStack(this, 1, 3));
|
2016-07-21 05:48:22 +00:00
|
|
|
ItemList.Casing_Coil_HSSG.set(new ItemStack(this, 1, 4));
|
2016-07-20 07:27:47 +00:00
|
|
|
ItemList.Casing_Coil_Naquadah.set(new ItemStack(this, 1, 5));
|
|
|
|
ItemList.Casing_Coil_NaquadahAlloy.set(new ItemStack(this, 1, 6));
|
2016-07-18 06:06:26 +00:00
|
|
|
}
|
|
|
|
@Override
|
|
|
|
@SideOnly(Side.CLIENT)
|
2016-10-23 09:59:59 +00:00
|
|
|
public ImmutableList<BakedQuad> getIcon(EnumFacing aSide, int aMeta) {
|
2016-07-18 06:06:26 +00:00
|
|
|
switch (aMeta) {
|
2016-07-18 07:05:44 +00:00
|
|
|
case 0:
|
2016-10-23 09:59:59 +00:00
|
|
|
return Textures.BlockIcons.MACHINE_COIL_CUPRONICKEL.getQuads(aSide);
|
2016-07-18 07:05:44 +00:00
|
|
|
case 1:
|
2016-10-23 09:59:59 +00:00
|
|
|
return Textures.BlockIcons.MACHINE_COIL_KANTHAL.getQuads(aSide);
|
2016-07-18 07:05:44 +00:00
|
|
|
case 2:
|
2016-10-23 09:59:59 +00:00
|
|
|
return Textures.BlockIcons.MACHINE_COIL_NICHROME.getQuads(aSide);
|
2016-07-18 07:05:44 +00:00
|
|
|
case 3:
|
2016-10-23 09:59:59 +00:00
|
|
|
return Textures.BlockIcons.MACHINE_COIL_TUNGSTENSTEEL.getQuads(aSide);
|
2016-07-21 05:48:22 +00:00
|
|
|
case 4:
|
2016-10-23 09:59:59 +00:00
|
|
|
return Textures.BlockIcons.MACHINE_COIL_HSSG.getQuads(aSide);
|
2016-07-20 07:27:47 +00:00
|
|
|
case 5:
|
2016-10-23 09:59:59 +00:00
|
|
|
return Textures.BlockIcons.MACHINE_COIL_NAQUADAH.getQuads(aSide);
|
2016-07-20 07:27:47 +00:00
|
|
|
case 6:
|
2016-10-23 09:59:59 +00:00
|
|
|
return Textures.BlockIcons.MACHINE_COIL_NAQUADAHALLOY.getQuads(aSide);
|
2016-07-18 06:06:26 +00:00
|
|
|
}
|
2016-10-23 09:59:59 +00:00
|
|
|
return Textures.BlockIcons.MACHINE_COIL_CUPRONICKEL.getQuads(aSide);
|
2016-07-18 06:06:26 +00:00
|
|
|
}
|
|
|
|
}
|