matchMaterial

public static Material matchMaterial(@Nonnull() String name)

Attempts to match the Material with the given name.

This is a match lookup; names will be converted to uppercase, then stripped of special characters in an attempt to format it like the enum.

Using this for match by ID is deprecated.

Return

Material if found, or null

Parameters

name

Name of the material to get