Adds a FormatBuilder for cleaner advanced formatting operations
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good
This commit is contained in:
@@ -23,6 +23,16 @@ public final class StringReplacer {
|
||||
public StringReplacer() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Instantiates a new string replacer
|
||||
*
|
||||
* @param stringFormatter <p>The string formatter to use for translation</p>
|
||||
* @param translatableMessage <p>The translatable message to replace for</p>
|
||||
*/
|
||||
public StringReplacer(@NotNull StringFormatter stringFormatter, @NotNull TranslatableMessage translatableMessage) {
|
||||
this.replacementInput = stringFormatter.getUnFormattedMessage(translatableMessage);
|
||||
}
|
||||
|
||||
/**
|
||||
* Instantiates a new string replacer
|
||||
*
|
||||
|
Reference in New Issue
Block a user