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)
| 3017 | * @return Material if found, or null |
| 3018 | */ |
| 3019 | @Nullable |
| 3020 | public static Material getMaterial(@NotNull final String name) { |
| 3021 | return getMaterial(name, false); |
| 3022 | } |
| 3023 | |
| 3024 | /** |
| 3025 | * Attempts to get the Material with the given name. |