Attempts to match the Material with the given name. This is a match lookup; names will be stripped of the "minecraft:" namespace, converted to uppercase, then stripped of special characters in an attempt to format it like the enum. @param name Name of the material to get @return Material if fou
(@NotNull final String name)
| 3061 | * @return Material if found, or null |
| 3062 | */ |
| 3063 | @Nullable |
| 3064 | public static Material matchMaterial(@NotNull final String name) { |
| 3065 | return matchMaterial(name, false); |
| 3066 | } |
| 3067 | |
| 3068 | /** |
| 3069 | * Attempts to match the Material with the given name. |