aboutsummaryrefslogtreecommitdiff
path: root/src/main/java/ftbsc/geb/api/annotations/Event.java
diff options
context:
space:
mode:
author zaaarf <zaaarf@proton.me>2023-08-22 11:13:46 +0200
committer zaaarf <zaaarf@proton.me>2023-08-22 11:13:46 +0200
commit25a6bac104e5c4089db6023bafb172b3a92dff61 (patch)
treea7842875d35025ec84746b1de14556dad88d2c04 /src/main/java/ftbsc/geb/api/annotations/Event.java
parent61e9b5c84815232b49a9dbbaed1200793cbe4d06 (diff)
feat: implemented annotations
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 {}