Class ChatFormatBuilder

java.lang.Object
ovh.mythmc.social.api.chat.format.ChatFormatBuilder

public final class ChatFormatBuilder extends Object
Builds the prefix component for a ChatChannel.

A format is assembled by appending SocialInjectedValue slots in order. Static text components are wrapped with append(TextComponent), while context-dependent elements can use appendConditional(TextComponent, java.util.function.Predicate) or arbitrary SocialInjectedValue instances via injectValue(SocialInjectedValue).