import org.getspout.spoutapi.material.Tool;
public class SpoutItemStack extends ItemStack {
public SpoutItemStack(int typeId, int amount, short data, ItemMeta meta) {
super(typeId, amount, data);
Material m = getMaterial();
if (m instanceof GenericCustomTool) {
if (!getEnchantments().containsKey(SpoutEnchantment.MAX_DURABILITY)) {
addUnsafeEnchantment(SpoutEnchantment.MAX_DURABILITY, ((Tool) m).getMaxDurability());
}
if (!getEnchantments().containsKey(SpoutEnchantment.DURABILITY)) {