diff options
Diffstat (limited to 'annotations')
3 files changed, 37 insertions, 0 deletions
diff --git a/annotations/build.gradle.kts b/annotations/build.gradle.kts new file mode 100644 index 0000000..d4febab --- /dev/null +++ b/annotations/build.gradle.kts @@ -0,0 +1,8 @@ +plugins { + kotlin("jvm") + `maven-publish` +} + +dependencies { +} + 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(); +} + |