Adding custom enchantments isn't supported by the API. You have to use reflection to allow the registering of new Enchantments (see what the registerEnchantment method does and checks to see if its valid).
For some things, you have to use nms (or reflection) to add an enchantment to the NMS registery for enchantments.