XMaterial#or(XMaterial alternateMaterial) is an utility method that changes this syntax: XMaterial.NEW_MATERAL.isSupported() ? XMaterial.NEW_MATERIAL.parseMaterial() : XMaterial.ALTERNATE_OLD_MATERIAL.parseMaterial() to this: XMaterial.NEW_MATERIAL.or(XMaterial.ALTERNATE_OLD_MATERIAL.parseMaterial().
XMaterial#or(XMaterial alternateMaterial) is an utility method that changes this syntax:
XMaterial.NEW_MATERAL.isSupported() ? XMaterial.NEW_MATERIAL.parseMaterial() : XMaterial.ALTERNATE_OLD_MATERIAL.parseMaterial()
to this:XMaterial.NEW_MATERIAL.or(XMaterial.ALTERNATE_OLD_MATERIAL.parseMaterial()
.