toggleFlags

fun ItemStack.toggleFlags(vararg flags: ItemFlag): ItemStack

Toggles the given flags on this ItemStack. If the flag is already set, it will be removed.

Return

this ItemStack

Parameters

flags

the flags to toggle