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

Method getData

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

Source from the content-addressed store, hash-verified

21 }
22
23 @Test
24 public void getData() {
25 for (Material material : Material.values()) {
26 if (!material.isLegacy()) {
27 continue;
28 }
29 Class<? extends MaterialData> clazz = material.getData();
30
31 assertThat(material.getNewData((byte) 0), is(instanceOf(clazz)));
32 }
33 }
34
35 @Test
36 public void matchMaterialByNull() {

Callers

nothing calls this directly

Calls 6

valuesMethod · 0.65
isLegacyMethod · 0.65
getDataMethod · 0.65
isMethod · 0.65
assertThatMethod · 0.45
getNewDataMethod · 0.45

Tested by

no test coverage detected