[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:
committed by
EvilSeph
parent
870d10b077
commit
3604da1f55
@@ -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
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user