public class MultiMessage
extends Message
-
Field Summary
Fields inherited from class de.oliver.fancylib.translations.message.Message
config
-
Constructor Summary
Constructors
-
Method Summary
Applies custom placeholders to the message
net.kyori.adventure.text.Component
Builds the message as a component
Adds the error color to the message
int
Adds the primary color to the message
Replaces a placeholder in the message
Adds the secondary color to the message
Adds the success color to the message
Adds the warning color to the message
Adds the prefix to the message
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Details
-
replace
Description copied from class: Message
Replaces a placeholder in the message
- Specified by:
replace in class Message
- Parameters:
placeholder - the placeholder to replace
replacement - the replacement
- Returns:
- this message
-
withPrefix
Description copied from class: Message
Adds the prefix to the message
- Specified by:
withPrefix in class Message
- Returns:
- this message
-
primary
Description copied from class: Message
Adds the primary color to the message
- Specified by:
primary in class Message
- Returns:
- this message
-
secondary
Description copied from class: Message
Adds the secondary color to the message
- Specified by:
secondary in class Message
- Returns:
- this message
-
success
Description copied from class: Message
Adds the success color to the message
- Specified by:
success in class Message
- Returns:
- this message
-
warning
Description copied from class: Message
Adds the warning color to the message
- Specified by:
warning in class Message
- Returns:
- this message
-
error
Description copied from class: Message
Adds the error color to the message
- Specified by:
error in class Message
- Returns:
- this message
-
applyCustomPlaceholders
public Message applyCustomPlaceholders()
Description copied from class: Message
Applies custom placeholders to the message
- Specified by:
applyCustomPlaceholders in class Message
- Returns:
- this message
-
buildComponent
public net.kyori.adventure.text.Component buildComponent()
Description copied from class: Message
Builds the message as a component
- Specified by:
buildComponent in class Message
- Returns:
- the built component
-
-
-
-
-
getPages
public int getPages()