Implement some UI
This commit is contained in:
6 files changed
+298
-96
No files matched your search
@@ -1,5 +1,7 @@
|
||||
package io.ib67.sfcraft;
|
||||
|
||||
import net.minecraft.text.Text;
|
||||
|
||||
public record Backup(
|
||||
String name,
|
||||
String backupKey,
|
||||
@@ -8,4 +10,9 @@ public record Backup(
|
||||
boolean incremental,
|
||||
long sizeTotal
|
||||
) {
|
||||
public Text toText(){
|
||||
return Text.of("sizeTotal: "+((sizeTotal / 1024.0) / 1024.0) + "GiB, "+
|
||||
(incremental ? "incremental" :"") + ", type: "+type+"."
|
||||
);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user