MCPcopy Create free account
hub / github.com/PaperMC/Paper / getByName

Method getByName

paper-api/src/test/java/org/bukkit/MaterialTest.java:11–16  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

9
10public class MaterialTest {
11 @Test
12 public void getByName() {
13 for (Material material : Material.values()) {
14 assertThat(Material.getMaterial(material.toString()), is(material));
15 }
16 }
17
18 @Test
19 public void getByNameNull() {

Callers

nothing calls this directly

Calls 5

getMaterialMethod · 0.95
valuesMethod · 0.65
isMethod · 0.65
assertThatMethod · 0.45
toStringMethod · 0.45

Tested by

no test coverage detected