ItemEnchantmentsMutable
Importing the class
If you need to reference this type directly, like when casting an Array, or as a parameter, you will need to import it. Simply add the import at the top of the file.
Members
getLevel(enchantment as Enchantment) as int
Parameters:
enchantment: Enchantment
Type: Enchantment
Return Type:
int
Getter
Return Type:
Set<Enchantment>
static of(enchantments as ItemEnchantments = null) as Mutable
Parameters:
Return Type:
ItemEnchantmentsMutable
removeIf(predicate as function(t as Enchantment) as bool)
Parameters:
predicate: function(t as Enchantment) as bool
Type: function(t as Enchantment) as bool
setEnchantment(enchantment as Enchantment, level as int)
Parameters:
enchantment: Enchantment
Type: Enchantment
level: int
Type: int
toImmutable() as ItemEnchantments
Return Type:
ItemEnchantments
upgrade(enchantment as Enchantment, level as int)
Parameters:
enchantment: Enchantment
Type: Enchantment
level: int
Type: int