Download API at: https://www.spigotmc.org/resources/advancedenchantments-api.76819/
AEAPI class functions:
AEAPI
How to apply custom enchants
Applying custom enchants is simple. Do remember, that the AEAPI.applyEnchant method also returns a modified ItemStack, which you will need to override with your current ItemStack object.