File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed
annotations/src/main/java/dev/hypera/chameleon/annotations Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 29
29
import org .jetbrains .annotations .NotNull ;
30
30
31
31
/**
32
- * Platform Dependency.
32
+ * Plugin Dependency.
33
+ *
34
+ * @see Plugin
33
35
*/
34
36
@ Retention (RetentionPolicy .SOURCE )
35
37
@ Target ({})
43
45
@ NotNull String name ();
44
46
45
47
/**
46
- * Returns the version, or a maven range, that represents the versions of this dependency.
48
+ * Returns the version, or a maven version range, that represents the compatible versions of
49
+ * this dependency.
47
50
* <p><strong>This is required for Sponge support.</strong></p>
48
51
*
49
52
* @return the required version of this dependency.
50
53
*/
51
54
@ NotNull String version () default "" ;
52
55
53
56
/**
54
- * Returns whether this dependency is not required to load the dependant.
55
- * <p>By default, this is {@code false}, meaning the dependency is required.</p>
57
+ * Returns whether this dependency is optional for loading the dependant plugin .
58
+ * <p>Defaults to {@code false}, meaning the dependency is not required.</p>
56
59
*
57
- * @return {@code true} if the dependency is not required for the dependant to load .
60
+ * @return {@code true} if the dependency is not required when loading the dependant plugin .
58
61
*/
59
62
boolean optional () default false ;
60
63
Original file line number Diff line number Diff line change 38
38
public @interface Plugin {
39
39
40
40
/**
41
- * The plugin's unique identifier.
41
+ * Returns the unique identifier of this plugin .
42
42
*
43
- * @return the plugin's ID.
43
+ * @return plugin ID.
44
44
*/
45
45
@ NotNull String id ();
46
46
You can’t perform that action at this time.
0 commit comments