Class MultiMessage
java.lang.Object
de.oliver.fancylib.translations.message.Message
de.oliver.fancylib.translations.message.MultiMessage
-
Field Summary
Fields inherited from class Message
config, tagResolverBuilder -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionApplies custom placeholders to the messagebuild()net.kyori.adventure.text.ComponentBuilds the message as a componentcopy()Copies the messageerror()Adds the error color to the messageintgetPages(int messagesPerPage) page(int page, int messagesPerPage) primary()Adds the primary color to the messageReplaces a placeholder in the messagereplaceStripped(String placeholder, String replacement) Replaces a placeholder in the message, all known tags are stripped from the replacementAdds the secondary color to the messagesuccess()Adds the success color to the messagewarning()Adds the warning color to the messageAdds the prefix to the messageMethods inherited from class Message
actionbar, addTagResolver, applyColorPlaceholders, send
-
Constructor Details
-
MultiMessage
-
-
Method Details
-
replace
-
replaceStripped
Description copied from class:MessageReplaces a placeholder in the message, all known tags are stripped from the replacement- Specified by:
replaceStrippedin classMessage- Parameters:
placeholder- the placeholder to replacereplacement- the replacement- Returns:
- this message
-
withPrefix
Description copied from class:MessageAdds the prefix to the message- Specified by:
withPrefixin classMessage- Returns:
- this message
-
-
secondary
-
success
-
warning
-
error
-
applyCustomPlaceholders
Description copied from class:MessageApplies custom placeholders to the message- Specified by:
applyCustomPlaceholdersin classMessage- Returns:
- this message
-
buildComponent
public net.kyori.adventure.text.Component buildComponent()Description copied from class:MessageBuilds the message as a component- Specified by:
buildComponentin classMessage- Returns:
- the built component
-
copy
-
build
-
getRawMessages
-
getSimpleMessages
-
page
-
getPages
public int getPages(int messagesPerPage)
-