/** * Creates a translatable component with a translation key and arguments. * * @param key the translation key * @param color the color * @param decorations the decorations * @param args the translation arguments * @return the translatable component */ public static TranslatableComponent of(final @NonNull String key, final @Nullable TextColor color, final @NonNull Set<TextDecoration> decorations, final @NonNull List<Component> args) { return builder() .color(color) .decorations(decorations, true) .key(key) .args(args) .build(); }
/** * Creates a translatable component with a translation key and arguments. * * @param key the translation key * @param color the color * @param decorations the decorations * @param args the translation arguments * @return the translatable component */ public static TranslatableComponent of(final @NonNull String key, final @Nullable TextColor color, final @NonNull Set<TextDecoration> decorations, final @NonNull List<Component> args) { return builder() .color(color) .decorations(decorations, true) .key(key) .args(args) .build(); }
/** * Creates a translatable component with a translation key and arguments. * * @param key the translation key * @param color the color * @param decorations the decorations * @param args the translation arguments * @return the translatable component */ public static TranslatableComponent of(final @NonNull String key, final @Nullable TextColor color, final @NonNull Set<TextDecoration> decorations, final @NonNull List<Component> args) { return builder() .color(color) .decorations(decorations, true) .key(key) .args(args) .build(); }
/** * Creates a translatable component with a translation key. * * @param key the translation key * @param color the color * @param decorations the decorations * @return the translatable component */ public static TranslatableComponent of(final @NonNull String key, final @Nullable TextColor color, final @NonNull Set<TextDecoration> decorations) { return builder(key) .color(color) .decorations(decorations, true) .build(); }
/** * Creates a translatable component with a translation key. * * @param key the translation key * @param color the color * @param decorations the decorations * @return the translatable component */ public static TranslatableComponent of(final @NonNull String key, final @Nullable TextColor color, final @NonNull Set<TextDecoration> decorations) { return builder(key) .color(color) .decorations(decorations, true) .build(); }
/** * Creates a translatable component with a translation key. * * @param key the translation key * @param color the color * @param decorations the decorations * @return the translatable component */ public static TranslatableComponent of(final @NonNull String key, final @Nullable TextColor color, final @NonNull Set<TextDecoration> decorations) { return builder(key) .color(color) .decorations(decorations, true) .build(); }