MCPcopy Create free account
hub / github.com/Bukkit/Bukkit / getData

Method getData

src/main/java/org/bukkit/Material.java:308–310  ·  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

306 * @return MaterialData associated with this Material
307 */
308 public Class<? extends MaterialData> getData() {
309 return (data == null) ? MaterialData.class : data;
310 }
311
312 /**
313 * Constructs a new MaterialData relevant for this Material, with the given

Callers 1

setDataMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected