mirror of
https://github.com/alexcrea/CustomAnvil.git
synced 2026-06-23 08:14:00 +02:00
Updated Register Enchantments (markdown)
parent
6c5c52c596
commit
9a2e92836e
1 changed files with 1 additions and 1 deletions
|
|
@ -49,7 +49,7 @@ It should look something like this example:
|
|||
```java
|
||||
@EventHandler
|
||||
public void onEnchantmentRegistry(CAEnchantRegistryReadyEvent event){
|
||||
// you could also get a list of your enchantment object and create CAEnchant object from your object.
|
||||
// you could also get a list of your enchantment object and create CAEnchant object from your object here instead.
|
||||
List<CAEnchantment> enchantments = getEnchantmentList();
|
||||
for (CAEnchantment enchantment : enchantments) {
|
||||
EnchantmentApi.registerEnchantment(enchantment);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue