diff options
author | Linnea Gräf <nea@nea.moe> | 2024-10-30 00:00:54 +0100 |
---|---|---|
committer | Linnea Gräf <nea@nea.moe> | 2024-10-30 00:00:54 +0100 |
commit | 410f6a0dd1e5288df7c3fc90bd3937a97b2e6385 (patch) | |
tree | cc3db28a82d28dd59528aa3580878cf4fff8980a /annotations | |
download | mcautotranslations-410f6a0dd1e5288df7c3fc90bd3937a97b2e6385.tar.gz mcautotranslations-410f6a0dd1e5288df7c3fc90bd3937a97b2e6385.tar.bz2 mcautotranslations-410f6a0dd1e5288df7c3fc90bd3937a97b2e6385.zip |
Init
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(); +} + |