-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathAutoRegister.java
More file actions
30 lines (27 loc) · 1.29 KB
/
AutoRegister.java
File metadata and controls
30 lines (27 loc) · 1.29 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package com.github.pinont.singularitylib.api.annotation;
import java.lang.annotation.ElementType;
import java.lang.annotation.Target;
/**
* Annotation to mark classes for automatic registration by the plugin.
* This annotation is used to mark classes that need to be registered during the plugin's startup process.
* <p>
* Classes annotated with this will be processed by the plugin's registration system.
* <p>
* <b>Hint:</b> Use this annotation to register commands, events, or custom items.
* It should only be used when the class extends {@code CustomItem}, {@code SimpleCommand}, or {@code Listener}.
*/
@Target({ElementType.TYPE})
public @interface AutoRegister {
/**
* Indicates that the annotated class should be automatically registered by the plugin.
* This annotation is used to mark classes that need to be registered during the plugin's startup process.
* <p>
* Classes annotated with this will be processed by the plugin's registration system.
* <p>
* <b>Hint:</b> Use this annotation to register commands, events, or custom items.
* It should only be used when the class extends {@code CustomItem}, {@code SimpleCommand}, or {@code Listener}.
*
* @return the registration value, defaults to empty string
*/
String value() default "";
}