mirror of
https://github.com/GTNewHorizons/TinkersConstruct.git
synced 2026-11-23 21:49:45 +00:00
Mostly working
This commit is contained in:
1 parent
1bb3c4cf7b
commit
ace5f7b54d
158 files changed
+1166
-808
No files matched your search
@@ -18,20 +18,11 @@ public class ToolPart extends CraftingItem
|
||||
{
|
||||
public ToolPart(int id, String partType, String textureType)
|
||||
{
|
||||
super(id, getNames(partType), buildTextureNames(textureType));
|
||||
super(id, toolMaterialNames, buildTextureNames(textureType), "parts/");
|
||||
this.setHasSubtypes(true);
|
||||
this.setMaxDamage(0);
|
||||
}
|
||||
|
||||
private static String[] getNames (String partType)
|
||||
{
|
||||
String[] names = new String[toolMaterialNames.length];
|
||||
for (int i = 0; i < toolMaterialNames.length; i++)
|
||||
names[i] = partType + toolMaterialNames[i];
|
||||
return names;
|
||||
}
|
||||
|
||||
|
||||
private static String[] buildTextureNames (String textureType)
|
||||
{
|
||||
String[] names = new String[toolMaterialNames.length];
|
||||
@@ -40,7 +31,7 @@ public class ToolPart extends CraftingItem
|
||||
return names;
|
||||
}
|
||||
|
||||
@SideOnly(Side.CLIENT)
|
||||
/*@SideOnly(Side.CLIENT)
|
||||
public void func_94581_a(IconRegister iconRegister)
|
||||
{
|
||||
this.icons = new Icon[textureNames.length];
|
||||
@@ -49,7 +40,7 @@ public class ToolPart extends CraftingItem
|
||||
{
|
||||
this.icons[i] = iconRegister.func_94245_a("tinker:parts/"+textureNames[i]);
|
||||
}
|
||||
}
|
||||
}*/
|
||||
|
||||
public static final String[] toolMaterialNames = new String[] {
|
||||
"Wood", "Stone", "Iron", "Flint", "Cactus", "Bone", "Obsidian", "Netherrack", "Slime", "Paper", "Cobalt", "Ardite", "Manyullyn", "Copper", "Bronze", "Alumite", "Steel" };
|
||||
|
||||
Reference in new issue
Block a user