17
17
import net .kyori .adventure .title .Title ;
18
18
import net .kyori .adventure .translation .GlobalTranslator ;
19
19
import net .kyori .adventure .translation .TranslationRegistry ;
20
- import org .jetbrains .annotations .ApiStatus ;
21
- import org .jetbrains .annotations .Nullable ;
22
20
import org .jspecify .annotations .NullMarked ;
21
+ import org .jspecify .annotations .Nullable ;
23
22
24
23
import java .io .File ;
25
24
import java .io .FileNotFoundException ;
@@ -141,7 +140,6 @@ public ComponentBundle register(String baseName, Locale locale) {
141
140
* @param key the key
142
141
* @return the format
143
142
*/
144
- @ ApiStatus .Internal
145
143
public @ Nullable String format (Locale locale , String key ) {
146
144
var request = files .get (locale );
147
145
if (request != null && request .containsKey (key ))
@@ -161,7 +159,6 @@ public ComponentBundle register(String baseName, Locale locale) {
161
159
* @param key the key
162
160
* @return the format
163
161
*/
164
- @ ApiStatus .Internal
165
162
public @ Nullable String format (Audience audience , String key ) {
166
163
return format (mapping ().apply (audience ), key );
167
164
}
@@ -250,7 +247,6 @@ public Component[] components(Audience audience, String key, TagResolver... tagR
250
247
* @param tagResolvers a series of tag resolvers to apply extra tags from, last specified taking priority
251
248
* @return the {@link MiniMessage#deserialize(String, TagResolver...) deserialized} component
252
249
*/
253
- @ ApiStatus .Internal
254
250
public Component deserialize (String message , TagResolver ... tagResolvers ) {
255
251
return miniMessage .deserialize (message , tagResolvers );
256
252
}
@@ -262,7 +258,6 @@ public Component deserialize(String message, TagResolver... tagResolvers) {
262
258
* @param tagResolvers a series of tag resolvers to apply extra tags from, last specified taking priority
263
259
* @return the {@link MiniMessage#deserialize(String, TagResolver...) deserialized} component
264
260
*/
265
- @ ApiStatus .Internal
266
261
public Component [] deserializeArray (String message , TagResolver ... tagResolvers ) {
267
262
return Arrays .stream (message .split ("\n |<newline>" ))
268
263
.map (s -> deserialize (s , tagResolvers ))
@@ -358,7 +353,7 @@ public void sendTitle(Audience audience, String title, String subtitle, TagResol
358
353
* @param times the timings of the title
359
354
* @param tagResolvers a series of tag resolvers to apply extra tags from, last specified taking priority
360
355
*/
361
- public void sendTitle (Audience audience , @ Nullable String title , @ Nullable String subtitle , @ Nullable Title . Times times , TagResolver ... tagResolvers ) {
356
+ public void sendTitle (Audience audience , @ Nullable String title , @ Nullable String subtitle , Title . @ Nullable Times times , TagResolver ... tagResolvers ) {
362
357
var titleComponent = title != null ? nullable (mapping .apply (audience ), title , tagResolvers ) : null ;
363
358
var subtitleComponent = subtitle != null ? nullable (mapping .apply (audience ), subtitle , tagResolvers ) : null ;
364
359
if (titleComponent != null || subtitleComponent != null ) audience .showTitle (Title .title (
0 commit comments