getId

fun getId(itemStack: ItemStack): Key

Gets the id of the given itemStack.