ItemEnchantments
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.
Implements
Undocumented Interfaces
TooltipProvider
Members
static empty() as ItemEnchantments
Return Type:
ItemEnchantments
Getter
Return Type:
Integer[Enchantment]
getLevel(enchantment as Enchantment) as int
Parameters:
enchantment: Enchantment
Type: Enchantment
Return Type:
int
Getter
Return Type:
bool
Getter
Return Type:
Set<Enchantment>
Getter
Return Type:
int
withTooltip(withTooltip as bool) as ItemEnchantments
Parameters:
withTooltip: bool
Type: bool
Return Type:
ItemEnchantments