diff --git a/src/data.rs b/src/data.rs index da55605..3c1d1ec 100644 --- a/src/data.rs +++ b/src/data.rs @@ -81,6 +81,31 @@ impl From for NbtItem { fn from(value: NbtList) -> Self { Self::Array(value) } } +impl From> for NbtItem { + #[inline] + fn from(value: Vec) -> Self { Self::Array(NbtList::from(Rc::new(RefCell::new(value)))) } +} + +impl From, NbtItem>> for NbtItem { + #[inline] + fn from(value: HashMap, NbtItem>) -> Self { Self::Array(NbtList::from(Rc::new(RefCell::new(value)))) } +} + +impl From> for NbtItem { + #[inline] + fn from(value: Vec) -> Self { Self::Array(NbtList::from(Rc::new(RefCell::new(value)))) } +} + +impl From> for NbtItem { + #[inline] + fn from(value: Vec) -> Self { Self::Array(NbtList::from(Rc::new(RefCell::new(value)))) } +} + +impl From> for NbtItem { + #[inline] + fn from(value: Vec) -> Self { Self::Array(NbtList::from(Rc::new(RefCell::new(value)))) } +} + impl From> for NbtList { #[inline] fn from(value: Vec) -> Self { Self::List(Rc::new(RefCell::new(value))) }