Add NBT toString()

This commit is contained in:
Mike Primm 2021-12-15 02:14:12 -06:00
parent 3725123b76
commit 546ffffdc0
9 changed files with 55 additions and 1 deletions

View file

@ -88,6 +88,9 @@ public class NBT {
public GenericBitStorage makeBitStorage(int bits, int count, long[] data) {
return new OurBitStorage(bits, count, data);
}
public String toString() {
return obj.toString();
}
}
public static class NBTList implements GenericNBTList {
private final ListTag obj;
@ -106,6 +109,9 @@ public class NBT {
public GenericNBTCompound getCompound(int idx) {
return new NBTCompound(obj.getCompound(idx));
}
public String toString() {
return obj.toString();
}
}
public static class OurBitStorage implements GenericBitStorage {
private final PackedIntegerArray bs;