From 6d2d64d20a43007762f9d9f7e2e18a55c81413d1 Mon Sep 17 00:00:00 2001 From: Aron Parker Date: Sun, 13 Aug 2023 15:30:23 +0200 Subject: [PATCH] Add inner for NbtLists --- src/tag.rs | 6 ++++++ 1 file changed, 6 insertions(+) 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 {