- Compatible API Versions
- 1.0.11
- Contributors
- DeadlyLegend
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 Questions or found a bug join my discord
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 Questions or found a bug join my discord
Join the DeadlyLegend Developer Discord Server!
Check out the DeadlyLegend Developer community on Discord - hang out with 1 other members and enjoy free voice and text chat.
discord.gg