Updated Register Enchantments (markdown)

alexcrea 2024-07-15 14:58:34 +02:00
parent b08dc4dc54
commit 8a912f492d

@ -22,7 +22,7 @@ Then you should preferably create a class extending `CAEnchantmentBase` and impl
* `removeFrom`: To remove the enchantment from the specified item. * `removeFrom`: To remove the enchantment from the specified item.
You can add optional features by implementing other function: You can add optional features by implementing other function:
* `isCleanOptimised` and `isCleanOptimised`: Indicate if a bulk operation exists for this enchantment. (wiki in WIP) * `isCleanOptimised` and `isCleanOptimised`: Indicate if a [bulk operation](https://github.com/alexcrea/CustomAnvil/wiki/Register-Bulk-Operations) exists for this enchantment.
* `isAllowed`: Allow the enchantment to be combined by only certain players. Useful for example if you like to allow only player with a specific permission. * `isAllowed`: Allow the enchantment to be combined by only certain players. Useful for example if you like to allow only player with a specific permission.
You also need 3 objects for the constructor: You also need 3 objects for the constructor: