damage

fun ItemStack.damage(amount: Int, world: World): ItemStack?

Damages the this by amount and returns the resulting ItemStack, which may be null if the item broke.