getBlock

fun ItemStack.getBlock(): Block?

Get Block of inner item if it is BlockItem, or null if not