GC-spigot / AdvancedEnchantments

Superior Custom Enchantments Creator for Minecraft And Spigot platform
138 stars 61 forks source link

How do I use the API to check if an enchant can be applied to an item #4326

Closed TheRealBlitz closed 1 month ago

TheRealBlitz commented 1 month ago

Describe the bug

Not Bug - Question - How do I use the API to check if an enchant can be applied to an item

How to reproduce

Question

Screenshots / Videos

No response

"/ae plinfo" link

N/A

Server Log

No response

ThomasWega commented 1 month ago

You could use getEnchantmentInstance on AEAPI class and there you have isApplicable or getAppliesTo or getMaterials, or whatever you might need