Attempts to get the Material with the given name. This is a normal lookup, names must be the precise name they are given in the enum. @param name Name of the material to get @return Material if found, or null
(@NotNull final String name)
| 4573 | * @return Material if found, or null |
| 4574 | */ |
| 4575 | @Nullable |
| 4576 | public static Material getMaterial(@NotNull final String name) { |
| 4577 | return getMaterial(name, false); |
| 4578 | } |
| 4579 | |
| 4580 | /** |
| 4581 | * Attempts to get the Material with the given name. |
no test coverage detected