You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DarthBoomerPlay edited this page Apr 13, 2020
·
1 revision
DMaterial
This utility helps to work with materials.
Version Support: 1.8 - 1.15.1
publicMaterialparseMaterial() // get MaterialpublicItemStackparseItem() // get ItemStackpublicstaticDMaterialrequestDMaterial(Stringname, bytedata) // get material by name and datapublicstaticDMaterialfromString(Stringkey) // from string//// Example of usage://player.getInventory().addItem(DMaterial.KELP.parseMaterial());