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

Method createData

src/main/java/org/bukkit/inventory/ItemStack.java:176–184  ·  view source on GitHub ↗
(final byte data)

Source from the content-addressed store, hash-verified

174 }
175
176 private void createData(final byte data) {
177 Material mat = Material.getMaterial(type);
178
179 if (mat == null) {
180 this.data = new MaterialData(type, data);
181 } else {
182 this.data = mat.getNewData(data);
183 }
184 }
185
186 @Override
187 public String toString() {

Callers 2

ItemStackMethod · 0.95
setTypeIdMethod · 0.95

Calls 2

getMaterialMethod · 0.95
getNewDataMethod · 0.95

Tested by

no test coverage detected