Adds some missing scope specifiers
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:
@@ -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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user