aboutsummaryrefslogtreecommitdiff
path: root/azalea-nbt/src/lib.rs
diff options
context:
space:
mode:
authormat <github@matdoes.dev>2023-03-23 13:55:33 +0000
committermat <github@matdoes.dev>2023-03-23 13:55:33 +0000
commitecb3f2ffd7dd4aa26213844a023e37fab4057ed0 (patch)
tree0cd0ea7eec8c05cdc8fae0a3ab15ef7c1402383c /azalea-nbt/src/lib.rs
parent2a07962af9a318114f38d3afe748a05212cfbd59 (diff)
downloadazalea-drasl-ecb3f2ffd7dd4aa26213844a023e37fab4057ed0.tar.xz
rename Tag to Nbt
Diffstat (limited to 'azalea-nbt/src/lib.rs')
-rwxr-xr-xazalea-nbt/src/lib.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/azalea-nbt/src/lib.rs b/azalea-nbt/src/lib.rs
index 3c8aa2cd..b6a7a971 100755
--- a/azalea-nbt/src/lib.rs
+++ b/azalea-nbt/src/lib.rs
@@ -6,7 +6,7 @@ mod error;
mod tag;
pub use error::Error;
-pub use tag::{NbtCompound, NbtList, Tag};
+pub use tag::{NbtCompound, NbtList, Nbt};
#[cfg(test)]
mod tests {
@@ -20,25 +20,25 @@ mod tests {
#[test]
fn mcbuf_nbt() {
let mut buf = Vec::new();
- let tag = Tag::Compound(NbtCompound::from_iter(vec![(
+ let tag = Nbt::Compound(NbtCompound::from_iter(vec![(
"hello world".into(),
- Tag::Compound(NbtCompound::from_iter(vec![(
+ Nbt::Compound(NbtCompound::from_iter(vec![(
"name".into(),
- Tag::String("Bananrama".into()),
+ Nbt::String("Bananrama".into()),
)])),
)]));
tag.write_into(&mut buf).unwrap();
let mut buf = Cursor::new(&buf[..]);
- let result = Tag::read_from(&mut buf).unwrap();
+ let result = Nbt::read_from(&mut buf).unwrap();
assert_eq!(
result,
- Tag::Compound(NbtCompound::from_iter(vec![(
+ Nbt::Compound(NbtCompound::from_iter(vec![(
"hello world".into(),
- Tag::Compound(NbtCompound::from_iter(vec![(
+ Nbt::Compound(NbtCompound::from_iter(vec![(
"name".into(),
- Tag::String("Bananrama".into()),
+ Nbt::String("Bananrama".into()),
)])),
)]))
);