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

30 lines
904 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 {
2013-08-01 20:54:56 -07:00
public BowRecipe(Item head, Item handle, ToolCore tool) {
2013-08-01 20:54:56 -07:00
super(head, handle, tool);
}
public BowRecipe(Item head, Item handle, Item accessory, ToolCore tool) {
2013-08-01 20:54:56 -07:00
super(head, handle, accessory, tool);
}
public BowRecipe(Item head, Item handle, Item accessory, Item extra, ToolCore tool) {
2013-08-01 20:54:56 -07:00
super(head, handle, accessory, extra, tool);
}
2014-02-17 00:31:43 -05:00
@Override
public boolean validHead(Item input) {
for (Item part : headList) {
if (part == input) return true;
if (toolRod != null && part == toolRod && (input == Items.stick || input == Items.bone)) return true;
2013-08-01 20:54:56 -07:00
}
return false;
}
}