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

Method getData

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

Gets the MaterialData class associated with this Material @return MaterialData associated with this Material

()

Source from the content-addressed store, hash-verified

3665 * @return MaterialData associated with this Material
3666 */
3667 @NotNull
3668 public Class<? extends MaterialData> getData() {
3669 Validate.isTrue(legacy, "Cannot get data class of Modern Material");
3670 return ctor.getDeclaringClass();
3671 }
3672
3673 /**
3674 * Constructs a new MaterialData relevant for this Material, with the

Callers 3

setDataMethod · 0.95
getDataMethod · 0.95
setDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected