2222/**
2323 * A translation registry that uses MiniMessage to translate components.
2424 * Without the usage of the class the translation with MiniMessage would not be possible.
25+ *
2526 * @see TranslationRegistry
2627 */
28+ @ Deprecated (forRemoval = true , since = "Please use TranslationStore.messageFormat(Key) instead" )
2729public final class AvesTranslationRegistry implements TranslationRegistry {
2830
2931 private static final MiniMessage MM = MiniMessage .miniMessage ();
3032 private final TranslationRegistry backedRegistry ;
3133
3234 /**
3335 * Creates a new instance of the translation registry.
36+ *
3437 * @param backedRegistry the registry which should be used for the translation
3538 */
3639 public AvesTranslationRegistry (@ NotNull TranslationRegistry backedRegistry ) {
@@ -39,6 +42,7 @@ public AvesTranslationRegistry(@NotNull TranslationRegistry backedRegistry) {
3942
4043 /**
4144 * Checks if the registry contains the given key.
45+ *
4246 * @param key the key to check
4347 * @return true if the key is present in the registry
4448 */
@@ -54,6 +58,7 @@ public boolean contains(@NotNull String key, @NotNull Locale locale) {
5458
5559 /**
5660 * Returns the name of the registry as {@link Key}.
61+ *
5762 * @return the given name from the registry
5863 */
5964 @ Override
@@ -63,7 +68,8 @@ public boolean contains(@NotNull String key, @NotNull Locale locale) {
6368
6469 /**
6570 * The method doesn't do anything in this implementation.
66- * @param key a translation key
71+ *
72+ * @param key a translation key
6773 * @param locale a locale
6874 * @return null
6975 */
@@ -74,8 +80,9 @@ public boolean contains(@NotNull String key, @NotNull Locale locale) {
7480
7581 /**
7682 * Translates the given component with the provided locale.
83+ *
7784 * @param component the component to translate
78- * @param locale the locale to use
85+ * @param locale the locale to use
7986 * @return the translated component
8087 */
8188 @ Override
@@ -102,6 +109,7 @@ public boolean contains(@NotNull String key, @NotNull Locale locale) {
102109
103110 /**
104111 * Sets the default locale for the registry.
112+ *
105113 * @param locale the locale to use a default
106114 */
107115 @ Override
@@ -111,7 +119,8 @@ public void defaultLocale(@NotNull Locale locale) {
111119
112120 /**
113121 * Registers a new translation in the registry.
114- * @param key the key to register
122+ *
123+ * @param key the key to register
115124 * @param locale the locale to register
116125 * @param format the format to register
117126 */
@@ -122,6 +131,7 @@ public void register(@NotNull String key, @NotNull Locale locale, @NotNull Messa
122131
123132 /**
124133 * Unregisters a translation from the registry.
134+ *
125135 * @param key the key to unregister
126136 */
127137 @ Override
0 commit comments