From c22580be320fe9c72cbf7605ca7953330eab6502 Mon Sep 17 00:00:00 2001 From: alemi Date: Wed, 15 Mar 2023 09:46:57 +0100 Subject: feat: TextBuilder accepts varargs --- src/main/java/ftbsc/bscv/tools/Text.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/main/java/ftbsc/bscv/tools/Text.java b/src/main/java/ftbsc/bscv/tools/Text.java index 6346e29..316a29d 100644 --- a/src/main/java/ftbsc/bscv/tools/Text.java +++ b/src/main/java/ftbsc/bscv/tools/Text.java @@ -33,8 +33,8 @@ public final class Text implements ICommons { return new Text(); } - public Text txt(String txt) { - this.text = txt; + public Text txt(String txt, Object... arg) { + this.text = String.format(txt, arg); return this; } -- cgit v1.2.3-56-ga3b1