Adds a FormatBuilder for cleaner advanced formatting operations
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good

This commit is contained in:
2025-08-22 15:39:21 +02:00
parent 3fe1be1ee0
commit 5aa16bd528
4 changed files with 177 additions and 4 deletions

View File

@@ -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
*