getEnchants

public abstract Map<Enchantment, Integer> getEnchants()

Returns getClassById copy the enchantments in this ItemMeta. Returns an empty map if none.

Return

An immutable copy of the enchantments