Developer API
The Developer API for EliteEnchantments.
You can access the EliteEnchantmentsAPI by doing the following:
EliteEnchantmentsAPI.getAPI().
then the method from below
public CustomEnchant getEnchant(String enchant);
public ItemStack applyEnchant(ItemStack itemStack, CustomEnchant customEnchant, int level);
public ItemStack applyEnchant(ItemStack itemStack, CustomEnchant customEnchant, int level, boolean force);
public EnchantGroup getEnchantGroup(CustomEnchant customEnchant);
public EnchantGroup getEnchantGroup(String group);
public List<CustomEnchant> getEnchantsInGroup(String group);
@SafeVarargs
public final void registerEffects(Class<? extends CustomEffect>... effects);
public void registerConditions(Condition... conditions);
public EnchantItemController getEnchantItemController();
There is also a couple of custom events you can listen to:
EnchantActivationEvent
EnchantDeactivationEvent
EnchantItemEvent
PreEnchantItemEvent
Last updated
Was this helpful?