Class MessageData
java.lang.Object
net.tnemc.plugincore.core.io.message.MessageData
Represents data for a message translation to be sent to a sender.
- Since:
- 0.1.2.0
- Author:
- creatorfromhell
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addReplacement
(String search, Boolean replacement) void
addReplacement
(String search, Double replacement) void
addReplacement
(String search, Integer replacement) void
addReplacement
(String search, String replacement) void
addReplacement
(String search, BigDecimal replacement) void
addReplacement
(String search, UUID replacement) void
addReplacements
(String[] search, String[] replacements) getNode()
net.kyori.adventure.text.Component
Used to translate a message for a player and return the translatedComponent
.net.kyori.adventure.text.Component
grab
(@NotNull PlayerProvider player) Used to translate a message for a player and return the translatedComponent
.
-
Constructor Details
-
MessageData
-
-
Method Details
-
addReplacement
-
addReplacement
-
addReplacement
-
addReplacement
-
addReplacement
-
addReplacement
-
addReplacements
-
grab
Used to translate a message for a player and return the translatedComponent
.- Parameters:
player
- Theplayer
to translate this for.- Returns:
- The
Component
that is the result of the translation process of the message for the given player.
-
grab
Used to translate a message for a player and return the translatedComponent
.- Parameters:
id
- Theunique identifier
of the player to translate this for.- Returns:
- The
Component
that is the result of the translation process of the message for the given player.
-
getReplacements
-
getNode
-