getMaterial

fun CommandContext<CommandSourceStack>.getMaterial(name: String): Material?

Retrieves a material from the command context.