From 410f6a0dd1e5288df7c3fc90bd3937a97b2e6385 Mon Sep 17 00:00:00 2001 From: Linnea Gräf Date: Wed, 30 Oct 2024 00:00:54 +0100 Subject: Init --- .../annotations/GatheredTranslation.java | 16 ++++++++++++++++ .../annotations/GatheredTranslations.java | 13 +++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 annotations/src/main/java/moe/nea/mcautotranslations/annotations/GatheredTranslation.java create mode 100644 annotations/src/main/java/moe/nea/mcautotranslations/annotations/GatheredTranslations.java (limited to 'annotations/src') 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(); +} + -- cgit