aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/geb/api/annotations/Event.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/java/ftbsc/geb/api/annotations/Event.java')
-rw-r--r--src/main/java/ftbsc/geb/api/annotations/Event.java17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/main/java/ftbsc/geb/api/annotations/Event.java b/src/main/java/ftbsc/geb/api/annotations/Event.java
new file mode 100644
index 0000000..ea1724c
--- /dev/null
+++ b/src/main/java/ftbsc/geb/api/annotations/Event.java
@@ -0,0 +1,17 @@
+package ftbsc.geb.api.annotations;
+
+import ftbsc.geb.api.IEvent;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * Marks a class as an Event. It should implement the {@link IEvent} interface.
+ * It doesn't need to be abstract, but it can never be final.
+ * @since 0.1.0
+ */
+@Target(ElementType.TYPE)
+@Retention(RetentionPolicy.CLASS)
+public @interface Event {}