diff --git a/src/tag.rs b/src/tag.rs index c564735..33937f3 100644 --- a/src/tag.rs +++ b/src/tag.rs @@ -641,6 +641,12 @@ impl NbtList { NbtList(Vec::new()) } + /// Returns a reference to the internal vector of this NBT list. + #[inline] + pub fn inner(&self) -> &Vec { + &self.0 + } + /// Returns a mutable reference to the internal vector of this NBT list. #[inline] pub fn inner_mut(&mut self) -> &mut Vec {