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
|
//package lance5057.tDefense.armor.parts;
//
//import mantle.items.abstracts.CraftingItem;
//import net.minecraft.item.ItemStack;
//import tconstruct.library.TConstructRegistry;
//import tconstruct.library.util.IToolPart;
//
//public class Cloth extends CraftingItem implements IToolPart
//{
// public Cloth()
// {
// super(toolMaterialNames, buildTextureNames("_cloth"), "parts/", "tinker", TConstructRegistry.materialTab);
// setHasSubtypes(true);
// setMaxDamage(0);
// }
//
// private static String[] buildTextureNames(String textureType)
// {
// final String[] names = new String[toolMaterialNames.length];
// for(int i = 0; i < toolMaterialNames.length; i++)
// {
// if(toolTextureNames[i].equals(""))
// {
// names[i] = "";
// }
// else
// {
// names[i] = toolTextureNames[i] + textureType;
// }
// }
// return names;
// }
//
// public static final String[] toolMaterialNames = new String[] {"white", "orange", "magenta", "lightblue", "yellow", "lime", "pink", "gray", "lightgray", "cyan", "purple", "blue", "brown", "green", "red", "black"};
// public static final String[] toolTextureNames = new String[] {"white", "orange", "magenta", "lightblue", "yellow", "lime", "pink", "gray", "lightgray", "cyan", "purple", "blue", "brown", "green", "red", "black"};
//
// @Override
// public int getMaterialID(ItemStack stack)
// {
// if(stack.getItemDamage() >= toolMaterialNames.length)
// {
// return -1;
// }
// return stack.getItemDamage();
// }
//}
|