Class MessageSenderBuilder
java.lang.Object
de.eldoria.eldoutilities.messages.MessageSenderBuilder
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddErrorTag
(Consumer<net.kyori.adventure.text.minimessage.tag.resolver.TagResolver.Builder> consumer) addMessageTag
(Consumer<net.kyori.adventure.text.minimessage.tag.resolver.TagResolver.Builder> consumer) @NotNull net.kyori.adventure.text.minimessage.MiniMessage.Builder
errorColor
(net.kyori.adventure.text.format.TextColor color) localizer
(ILocalizer localizer) The localizer used to serialize messages via the<i8ln>
tagmessageColor
(net.kyori.adventure.text.format.TextColor color) @NotNull net.kyori.adventure.text.minimessage.MiniMessage.Builder
postProcessor
(@NotNull UnaryOperator<net.kyori.adventure.text.Component> postProcessor) prefix
(net.kyori.adventure.text.Component prefix) preProcessor
(@NotNull UnaryOperator<String> preProcessor) register()
Builds and registers the message sender for the provided plugin@NotNull net.kyori.adventure.text.minimessage.MiniMessage.Builder
strict
(boolean strict)
-
Constructor Details
-
MessageSenderBuilder
-
-
Method Details
-
localizer
The localizer used to serialize messages via the<i8ln>
tag- Parameters:
localizer
- localizer instance- Returns:
- builder instance
-
prefix
-
prefix
-
messageColor
-
errorColor
-
addTag
public MessageSenderBuilder addTag(Consumer<net.kyori.adventure.text.minimessage.tag.resolver.TagResolver.Builder> consumer) -
addMessageTag
public MessageSenderBuilder addMessageTag(Consumer<net.kyori.adventure.text.minimessage.tag.resolver.TagResolver.Builder> consumer) -
addErrorTag
public MessageSenderBuilder addErrorTag(Consumer<net.kyori.adventure.text.minimessage.tag.resolver.TagResolver.Builder> consumer) -
strict
-
debug
-
postProcessor
public @NotNull net.kyori.adventure.text.minimessage.MiniMessage.Builder postProcessor(@NotNull @NotNull UnaryOperator<net.kyori.adventure.text.Component> postProcessor) -
preProcessor
-
register
Builds and registers the message sender for the provided plugin- Returns:
- registered message sender
-