[Bleeding] Add ways to retrieve and delete crafting recipes and fixed some issues with the existing recipe API.

- New recipe iterator which enables deleting specific recipes
- Functions to delete all recipes or revert to vanilla recipe set
- Fixed the recipes API; you should now be able to define recipes that take brewed potions!
- Fetch all recipes that result in a specific item
This commit is contained in:
Celtic Minstrel
2011-07-23 23:18:58 -04:00
committed by EvilSeph
parent 870d10b077
commit 3604da1f55
6 changed files with 226 additions and 81 deletions

View File

@@ -57,6 +57,16 @@ public class ItemStack implements Cloneable, ConfigurationSerializable {
this(type.getId(), amount, damage, data);
}
public ItemStack(final ItemStack stack) {
this.type = stack.type;
this.amount = stack.amount;
this.durability = stack.durability;
if (stack.data != null) {
this.data = stack.data.clone();
}
enchantments.putAll(stack.enchantments);
}
/**
* Gets the type of this item
*