Deadlylegend612
New Member
Deadlylegend612 submitted a new resource:
EnchantAPI - Makes it it super easy to Enchant things in your Plugin
EnchantAPI - Makes it it super easy to Enchant things in your Plugin
Read more about this resource...A super simple to use Api for Enchantments
example
you wanna get Sharpness but you dont know the nukkit code (it is DAMAGE_ALL)
just use:
EnchantAPI.getEnchant(Enchant.SHARPNESS)
and thats it it will return The Nukkit Enchantment
simple isn't it?
There is also a Method called
EnchantAPI.getEnchantByName()
it has a String as parameter but if you dont typ the correct name it will throw an error so i would not recommend to use it but if you want go ahead
Thats it if you have any...