/** * Creates a text component with content, and optional color and decorations. * * @param content the plain text content * @param color the color * @param decorations the decorations * @return the text component */ public static TextComponent of(final @NonNull String content, final @Nullable TextColor color, final @NonNull Set<TextDecoration> decorations) { return builder(content).color(color).decorations(decorations, true).build(); }
/** * Creates a text component with content, and optional color and decorations. * * @param content the plain text content * @param color the color * @param decorations the decorations * @return the text component */ public static TextComponent of(final @NonNull String content, final @Nullable TextColor color, final @NonNull Set<TextDecoration> decorations) { return builder(content).color(color).decorations(decorations, true).build(); }
/** * Creates a text component with content, and optional color and decorations. * * @param content the plain text content * @param color the color * @param decorations the decorations * @return the text component */ public static TextComponent of(final @NonNull String content, final @Nullable TextColor color, final @NonNull Set<TextDecoration> decorations) { return builder(content).color(color).decorations(decorations, true).build(); }