MinecraftForge/MinecraftForge — pull request #614 by jimmikaelkael (2013-06-22 14:11:12+00:00)
Title: Allow to use ID for customCraftingMaterial

This patch allow to use net.minecraft.block.Block as custom crafting material
transparently.
For example, with current Forge, you can't use net.minecraft.block.Block.obsidian
as custom crafting material.
This impose you override 'getIsRepairable' in every item you want to be
repairable (if it's using a block as base material).

This patch changes existing Forge patches for minecraft:
- net.minecraft.item.EnumArmorMaterial.customCraftingMaterial (Item type)
becomes net.minecraft.item.EnumArmorMaterial.customCraftingMaterialID
- net.minecraft.item.EnumToolMaterial.customCraftingMaterial (Item type)
becomes net.minecraft.item.EnumToolMaterial.customCraftingMaterialID

With this patch applied you'll be able to use a Block as custom crafting
material (and Item too of course) by passing it blockID od itemID field.