Finish basic server and client impl

This commit is contained in:
zontreck 2024-05-22 15:53:29 -07:00
parent a082210fa9
commit 178cc201c1
4 changed files with 213 additions and 57 deletions

View file

@ -17,7 +17,7 @@ void main() {
CompoundTag tag =
await NbtIo.read("${Directory.current.path}/test/hello_world.nbt");
expect(tag.getKey(), "hello world");
expect(tag.contains("name"), true);
expect(tag.containsKey("name"), true);
expect(tag.get("name")!.asString(), "Bananrama");
});
@ -37,7 +37,7 @@ void main() {
CompoundTag tag =
await NbtIo.read("${Directory.current.path}/build/hello_world.nbt");
expect(tag.getKey(), "hello world");
expect(tag.contains("name"), true);
expect(tag.containsKey("name"), true);
expect(tag.get("name")!.asString(), "Bananrama");
});