aboutsummaryrefslogtreecommitdiff
path: root/annotations/src
diff options
context:
space:
mode:
Diffstat (limited to 'annotations/src')
-rw-r--r--annotations/src/main/java/moe/nea/mcautotranslations/annotations/GatheredTranslation.java16
-rw-r--r--annotations/src/main/java/moe/nea/mcautotranslations/annotations/GatheredTranslations.java13
2 files changed, 29 insertions, 0 deletions
diff --git a/annotations/src/main/java/moe/nea/mcautotranslations/annotations/GatheredTranslation.java b/annotations/src/main/java/moe/nea/mcautotranslations/annotations/GatheredTranslation.java
new file mode 100644
index 0000000..18054fd
--- /dev/null
+++ b/annotations/src/main/java/moe/nea/mcautotranslations/annotations/GatheredTranslation.java
@@ -0,0 +1,16 @@
+package moe.nea.mcautotranslations.annotations;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Repeatable;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Retention(RetentionPolicy.CLASS)
+@Target(ElementType.TYPE)
+@Repeatable(GatheredTranslations.class)
+public @interface GatheredTranslation {
+ String key();
+
+ String value();
+}
diff --git a/annotations/src/main/java/moe/nea/mcautotranslations/annotations/GatheredTranslations.java b/annotations/src/main/java/moe/nea/mcautotranslations/annotations/GatheredTranslations.java
new file mode 100644
index 0000000..e2456cc
--- /dev/null
+++ b/annotations/src/main/java/moe/nea/mcautotranslations/annotations/GatheredTranslations.java
@@ -0,0 +1,13 @@
+package moe.nea.mcautotranslations.annotations;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+@Retention(RetentionPolicy.CLASS)
+@Target(ElementType.TYPE)
+public @interface GatheredTranslations {
+ GatheredTranslation[] value();
+}
+