Initial test of Gradle (not working yet)

This commit is contained in:
Sunstrike committed 2013-11-21 16:13:51 +00:00
1 parent e8b7378831
commit cb87c836c8
519 files changed
+351

No files matched your search

@@ -0,0 +1,37 @@
package tconstruct.items;
import tconstruct.library.util.IToolPart;
import net.minecraft.item.ItemStack;
public class Fletching extends CraftingItem implements IToolPart
{
public Fletching(int id)
{
super(id, toolMaterialNames, buildTextureNames("_fletching"), "parts/");
this.setHasSubtypes(true);
this.setMaxDamage(0);
}
private static String[] buildTextureNames (String textureType)
{
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[] { "feather", "leaf", "slime", "blueslime" };
public static final String[] toolTextureNames = new String[] { "feather", "leaf", "slime", "blueslime" };
@Override
public int getMaterialID (ItemStack stack)
{
return stack.getItemDamage();
}
}