unbreakable

fun unbreakable(flag: Boolean = true): ArmorItem

Sets whether the armor item is unbreakable.

Return

The ArmorItem instance for method chaining.

Parameters

flag

A boolean flag indicating if the armor should be unbreakable.