loreIf

fun loreIf(vararg lores: String, condition: Boolean = false): ItemBuilder(source)

Adds lore to the item builder if the given condition is true.

Return

The modified item builder.

Parameters

lores

The lore strings to add.

condition

The condition that determines whether to add the lore or not. Default value is false.