Added autocomplete for enchantment types.

This commit is contained in:
Vatuu
2022-08-16 16:08:25 +02:00
parent 116c017c6d
commit dbc425dce6
3 changed files with 26 additions and 25 deletions

View File

@@ -39,8 +39,9 @@ import org.bukkit.inventory.meta.ItemMeta;
@Data
public class IrisEnchantment {
@Required
@RegistryListEnchantment
@Desc("The enchantment")
private String enchantment = "";
private String enchantment;
@MinNumber(1)
@Desc("Minimum amount of this loot")

View File

@@ -0,0 +1,12 @@
package com.volmit.iris.engine.object.annotations;
import java.lang.annotation.Retention;
import java.lang.annotation.Target;
import static java.lang.annotation.ElementType.*;
import static java.lang.annotation.RetentionPolicy.RUNTIME;
@Retention(RUNTIME)
@Target({PARAMETER, TYPE, FIELD})
public @interface RegistryListEnchantment {
}