/** * Creates a text component with the content of {@link String#valueOf(char)}. * * @param value the char value * @return the component */ static @NonNull Component of(final char value) { if(value == '\n') return newline(); if(value == ' ') return space(); return TextComponent.of(String.valueOf(value)); }
/** * Creates a text component with the content of {@link String#valueOf(char)}. * * @param value the char value * @return the component */ static @NonNull Component of(final char value) { if(value == '\n') return newline(); if(value == ' ') return space(); return TextComponent.of(String.valueOf(value)); }