getItemStack

fun CommandContext<CommandSourceStack>.getItemStack(name: String): ItemStack

Retrieves an ItemStack from the command context.