clear Enchants If
Clears all enchantments if the specified condition is true.
Return
An ItemBuilder object with cleared enchantments, or the original ItemBuilder object if the condition is false.
Parameters
condition
The condition that determines whether to clear enchantments.