diff --git a/bukkit-helper-116-4/src/main/java/org/dynmap/bukkit/helper/v116_4/NBT.java b/bukkit-helper-116-4/src/main/java/org/dynmap/bukkit/helper/v116_4/NBT.java index ea6ba46b..120d6e08 100644 --- a/bukkit-helper-116-4/src/main/java/org/dynmap/bukkit/helper/v116_4/NBT.java +++ b/bukkit-helper-116-4/src/main/java/org/dynmap/bukkit/helper/v116_4/NBT.java @@ -89,6 +89,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 NBTTagList obj; @@ -107,6 +110,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 DataBits bs; diff --git a/bukkit-helper-117/src/main/java/org/dynmap/bukkit/helper/v117/NBT.java b/bukkit-helper-117/src/main/java/org/dynmap/bukkit/helper/v117/NBT.java index 00b1fc66..303e6094 100644 --- a/bukkit-helper-117/src/main/java/org/dynmap/bukkit/helper/v117/NBT.java +++ b/bukkit-helper-117/src/main/java/org/dynmap/bukkit/helper/v117/NBT.java @@ -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 NBTTagList 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 DataBits bs; diff --git a/bukkit-helper-118/src/main/java/org/dynmap/bukkit/helper/v118/NBT.java b/bukkit-helper-118/src/main/java/org/dynmap/bukkit/helper/v118/NBT.java index 4439aa3b..074dfd88 100644 --- a/bukkit-helper-118/src/main/java/org/dynmap/bukkit/helper/v118/NBT.java +++ b/bukkit-helper-118/src/main/java/org/dynmap/bukkit/helper/v118/NBT.java @@ -87,7 +87,10 @@ public class NBT { @Override 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 NBTTagList obj; @@ -106,6 +109,9 @@ public class NBT { public GenericNBTCompound getCompound(int idx) { return new NBTCompound(obj.a(idx)); } + public String toString() { + return obj.toString(); + } } public static class OurBitStorage implements GenericBitStorage { private final SimpleBitStorage bs; diff --git a/fabric-1.16.4/src/main/java/org/dynmap/fabric_1_16_4/NBT.java b/fabric-1.16.4/src/main/java/org/dynmap/fabric_1_16_4/NBT.java index eddcf988..d2a23c21 100644 --- a/fabric-1.16.4/src/main/java/org/dynmap/fabric_1_16_4/NBT.java +++ b/fabric-1.16.4/src/main/java/org/dynmap/fabric_1_16_4/NBT.java @@ -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; diff --git a/fabric-1.17.1/src/main/java/org/dynmap/fabric_1_17_1/NBT.java b/fabric-1.17.1/src/main/java/org/dynmap/fabric_1_17_1/NBT.java index 4d8105f5..2de9edcc 100644 --- a/fabric-1.17.1/src/main/java/org/dynmap/fabric_1_17_1/NBT.java +++ b/fabric-1.17.1/src/main/java/org/dynmap/fabric_1_17_1/NBT.java @@ -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 NbtList 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; diff --git a/fabric-1.18/src/main/java/org/dynmap/fabric_1_18/NBT.java b/fabric-1.18/src/main/java/org/dynmap/fabric_1_18/NBT.java index d5ce82d5..19b0db17 100644 --- a/fabric-1.18/src/main/java/org/dynmap/fabric_1_18/NBT.java +++ b/fabric-1.18/src/main/java/org/dynmap/fabric_1_18/NBT.java @@ -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 NbtList 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; diff --git a/forge-1.16.5/src/main/java/org/dynmap/forge_1_16_5/NBT.java b/forge-1.16.5/src/main/java/org/dynmap/forge_1_16_5/NBT.java index a3eb249c..17fc8060 100644 --- a/forge-1.16.5/src/main/java/org/dynmap/forge_1_16_5/NBT.java +++ b/forge-1.16.5/src/main/java/org/dynmap/forge_1_16_5/NBT.java @@ -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 ListNBT 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 BitArray bs; diff --git a/forge-1.17.1/src/main/java/org/dynmap/forge_1_17_1/NBT.java b/forge-1.17.1/src/main/java/org/dynmap/forge_1_17_1/NBT.java index ee839aff..454549c5 100644 --- a/forge-1.17.1/src/main/java/org/dynmap/forge_1_17_1/NBT.java +++ b/forge-1.17.1/src/main/java/org/dynmap/forge_1_17_1/NBT.java @@ -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 BitStorage bs; diff --git a/forge-1.18/src/main/java/org/dynmap/forge_1_18/NBT.java b/forge-1.18/src/main/java/org/dynmap/forge_1_18/NBT.java index 299699eb..7c64a9b6 100644 --- a/forge-1.18/src/main/java/org/dynmap/forge_1_18/NBT.java +++ b/forge-1.18/src/main/java/org/dynmap/forge_1_18/NBT.java @@ -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 SimpleBitStorage bs;