MCPcopy Create free account
hub / github.com/Teneted/Tenet / getMaterial

Method getMaterial

src/main/java/org/bukkit/Material.java:4575–4578  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.

Callers 6

matchMaterialMethod · 0.95
getMaterialMethod · 0.95
CraftMetaBlockStateMethod · 0.95
CraftMagicNumbersClass · 0.95
getMaterialMethod · 0.95
deserializeMethod · 0.95

Calls 3

getUnsafeMethod · 0.95
getMethod · 0.65
fromLegacyMethod · 0.65

Tested by

no test coverage detected