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

Method getByData

paper-api/src/test/java/org/bukkit/CoalTypeTest.java:8–13  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

6
7public class CoalTypeTest {
8 @Test
9 public void getByData() {
10 for (CoalType coalType : CoalType.values()) {
11 assertThat(CoalType.getByData(coalType.getData()), is(coalType));
12 }
13 }
14}

Callers

nothing calls this directly

Calls 5

getByDataMethod · 0.95
valuesMethod · 0.65
getDataMethod · 0.65
isMethod · 0.65
assertThatMethod · 0.45

Tested by

no test coverage detected