Class ChatRendererFeature.Builder<T extends ChatRendererFeature.Builder<T,R>,R extends ChatRendererFeature>
java.lang.Object
ovh.mythmc.social.api.chat.renderer.feature.ChatRendererFeature.Builder<T,R>
- Type Parameters:
T- the concrete builder typeR- the feature type being built
- Direct Known Subclasses:
ChatRendererFeature.ChatFeatureBuilder
- Enclosing class:
ChatRendererFeature
public abstract static class ChatRendererFeature.Builder<T extends ChatRendererFeature.Builder<T,R>,R extends ChatRendererFeature>
extends Object
Builder for
ChatRendererFeature.-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Predicate<SocialRegisteredMessageContext> protected ChatRendererFeature.Decoratorprotected final ChatRendererFeature.Handler -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract Rbuild()Builds theChatRendererFeature.condition(@NotNull Predicate<SocialRegisteredMessageContext> condition) Sets the condition under which this feature applies.decorator(@NotNull ChatRendererFeature.Decorator decorator) Sets the decorator to modify the renderedComponent.protected abstract Tget()
-
Field Details
-
handler
-
condition
-
decorator
-
-
Constructor Details
-
Builder
-
-
Method Details
-
get
-
condition
Sets the condition under which this feature applies.- Parameters:
condition- a predicate evaluating a message context- Returns:
- the builder for chaining
-
decorator
Sets the decorator to modify the renderedComponent.- Parameters:
decorator- the decorator function- Returns:
- the builder for chaining
-
build
Builds theChatRendererFeature.
-