Files
TinkersConstruct/src/main/java/tconstruct/tools/BowRecipe.java
T

38 lines
961 B
Java
Raw Normal View History

2014-06-04 21:44:48 -08:00
package tconstruct.tools;
2013-08-01 20:54:56 -07:00
2013-12-31 16:37:46 -05:00
import net.minecraft.init.Items;
2013-08-01 20:54:56 -07:00
import net.minecraft.item.Item;
import tconstruct.library.crafting.ToolRecipe;
import tconstruct.library.tools.ToolCore;
public class BowRecipe extends ToolRecipe
{
public BowRecipe(Item head, Item handle, ToolCore tool)
{
super(head, handle, tool);
}
public BowRecipe(Item head, Item handle, Item accessory, ToolCore tool)
{
super(head, handle, accessory, tool);
}
public BowRecipe(Item head, Item handle, Item accessory, Item extra, ToolCore tool)
{
super(head, handle, accessory, extra, tool);
}
2014-02-17 00:31:43 -05:00
@Override
public boolean validHead (Item input)
2013-08-01 20:54:56 -07:00
{
for (Item part : headList)
{
if (part == input)
2013-08-01 20:54:56 -07:00
return true;
if (toolRod != null && part == toolRod && (input == Items.stick || input == Items.bone))
2013-08-01 20:54:56 -07:00
return true;
}
return false;
}
}