summaryrefslogtreecommitdiff
path: root/src/main/java/com/redstoner/annotations
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/com/redstoner/annotations')
-rw-r--r--src/main/java/com/redstoner/annotations/AutoRegisterListener.java17
-rw-r--r--src/main/java/com/redstoner/annotations/Commands.java11
-rw-r--r--src/main/java/com/redstoner/annotations/Version.java43
3 files changed, 36 insertions, 35 deletions
diff --git a/src/main/java/com/redstoner/annotations/AutoRegisterListener.java b/src/main/java/com/redstoner/annotations/AutoRegisterListener.java
index fabdb5f..7e36c9e 100644
--- a/src/main/java/com/redstoner/annotations/AutoRegisterListener.java
+++ b/src/main/java/com/redstoner/annotations/AutoRegisterListener.java
@@ -5,11 +5,12 @@ import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
-/** The auto register annotation, to be put onto Classes that implement listener when you are too lazy to register the events yourself.
- *
- * @author Pepich */
-@Target(ElementType.TYPE)
-@Retention(RetentionPolicy.RUNTIME)
-@Version(major = 1, minor = 0, revision = 1, compatible = 1)
-public @interface AutoRegisterListener
-{}
+/**
+ * The auto register annotation, to be put onto Classes that implement listener when you are too lazy to register the events yourself.
+ *
+ * @author Pepich
+ */
+@Target (ElementType.TYPE)
+@Retention (RetentionPolicy.RUNTIME)
+@Version (major = 1, minor = 0, revision = 1, compatible = 1)
+public @interface AutoRegisterListener {}
diff --git a/src/main/java/com/redstoner/annotations/Commands.java b/src/main/java/com/redstoner/annotations/Commands.java
index 537bff0..d5ea130 100644
--- a/src/main/java/com/redstoner/annotations/Commands.java
+++ b/src/main/java/com/redstoner/annotations/Commands.java
@@ -1,15 +1,14 @@
package com.redstoner.annotations;
+import com.redstoner.misc.CommandHolderType;
+
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
-import com.redstoner.misc.CommandHolderType;
-
-@Target(ElementType.TYPE)
-@Retention(RetentionPolicy.RUNTIME)
-public @interface Commands
-{
+@Target (ElementType.TYPE)
+@Retention (RetentionPolicy.RUNTIME)
+public @interface Commands {
CommandHolderType value();
}
diff --git a/src/main/java/com/redstoner/annotations/Version.java b/src/main/java/com/redstoner/annotations/Version.java
index 52d5145..2137c3f 100644
--- a/src/main/java/com/redstoner/annotations/Version.java
+++ b/src/main/java/com/redstoner/annotations/Version.java
@@ -1,32 +1,33 @@
package com.redstoner.annotations;
-import java.lang.annotation.Documented;
-import java.lang.annotation.ElementType;
-import java.lang.annotation.Retention;
-import java.lang.annotation.RetentionPolicy;
-import java.lang.annotation.Target;
+import java.lang.annotation.*;
-/** The Version annotation, to be applied to all Classes that are part of the project.
- *
- * @author Pepich */
-@Target(ElementType.TYPE)
+/**
+ * The Version annotation, to be applied to all Classes that are part of the project.
+ *
+ * @author Pepich
+ */
+@Target (ElementType.TYPE)
@Documented
-@Retention(RetentionPolicy.RUNTIME)
-public @interface Version
-{
- /** The major indicator of the version. Will be used for compatibility detection.
- *
- * @return the major version as an int */
+@Retention (RetentionPolicy.RUNTIME)
+public @interface Version {
+ /**
+ * The major indicator of the version. Will be used for compatibility detection.
+ *
+ * @return the major version as an int
+ */
int major();
-
+
int minor();
-
+
int revision();
-
- /** The compatibility part of the version number. Will be used for compatibility detection.</br>
+
+ /**
+ * The compatibility part of the version number. Will be used for compatibility detection.</br>
* Set to -1 if it is supposed to be always compatible.</br>
* Defaults to 1.
- *
- * @return the smallest compatible version as an int. */
+ *
+ * @return the smallest compatible version as an int.
+ */
int compatible() default 1;
}