Adds some missing scope specifiers
All checks were successful
KnarCraft/KnarLib/pipeline/head This commit looks good

This commit is contained in:
2025-09-03 02:28:05 +02:00
parent 51ea6be94a
commit dee068f142

View File

@@ -42,7 +42,7 @@ public final class FormatBuilder {
if (FormatBuilder.stringFormatter == null) { if (FormatBuilder.stringFormatter == null) {
throw NOT_SETUP_EXCEPTION; throw NOT_SETUP_EXCEPTION;
} }
this.toFormat = stringFormatter.getUnFormattedMessage(translatableMessage); this.toFormat = FormatBuilder.stringFormatter.getUnFormattedMessage(translatableMessage);
} }
/** /**
@@ -104,7 +104,8 @@ public final class FormatBuilder {
throw NOT_SETUP_EXCEPTION; throw NOT_SETUP_EXCEPTION;
} }
this.toFormat = StringFormatter.replacePlaceholder(this.toFormat, this.toFormat = StringFormatter.replacePlaceholder(this.toFormat,
stringFormatter.getUnFormattedMessage(placeholder), stringFormatter.getUnFormattedMessage(replacement)); FormatBuilder.stringFormatter.getUnFormattedMessage(placeholder),
FormatBuilder.stringFormatter.getUnFormattedMessage(replacement));
return this; return this;
} }
@@ -122,7 +123,7 @@ public final class FormatBuilder {
throw NOT_SETUP_EXCEPTION; throw NOT_SETUP_EXCEPTION;
} }
this.toFormat = StringFormatter.replacePlaceholder(this.toFormat, placeholder, this.toFormat = StringFormatter.replacePlaceholder(this.toFormat, placeholder,
stringFormatter.getUnFormattedMessage(replacement)); FormatBuilder.stringFormatter.getUnFormattedMessage(replacement));
return this; return this;
} }
@@ -140,7 +141,7 @@ public final class FormatBuilder {
throw NOT_SETUP_EXCEPTION; throw NOT_SETUP_EXCEPTION;
} }
this.toFormat = StringFormatter.replacePlaceholder(this.toFormat, this.toFormat = StringFormatter.replacePlaceholder(this.toFormat,
stringFormatter.getUnFormattedMessage(placeholder), replacement); FormatBuilder.stringFormatter.getUnFormattedMessage(placeholder), replacement);
return this; return this;
} }
@@ -196,7 +197,7 @@ public final class FormatBuilder {
if (FormatBuilder.stringFormatter == null) { if (FormatBuilder.stringFormatter == null) {
throw NOT_SETUP_EXCEPTION; throw NOT_SETUP_EXCEPTION;
} }
this.toFormat = stringFormatter.getUnFormattedColoredMessage(this.toFormat); this.toFormat = FormatBuilder.stringFormatter.getUnFormattedColoredMessage(this.toFormat);
return this; return this;
} }
@@ -224,7 +225,7 @@ public final class FormatBuilder {
if (FormatBuilder.stringFormatter == null) { if (FormatBuilder.stringFormatter == null) {
throw NOT_SETUP_EXCEPTION; throw NOT_SETUP_EXCEPTION;
} }
this.toFormat += stringFormatter.getUnFormattedMessage(translatableMessage); this.toFormat += FormatBuilder.stringFormatter.getUnFormattedMessage(translatableMessage);
return this; return this;
} }