From b762d1dfb28f2e166e5c3b185a12d7b5a6b53885 Mon Sep 17 00:00:00 2001 From: mat Date: Mon, 31 Jul 2023 21:56:56 -0500 Subject: add EntityDataItem::new --- azalea-entity/src/data.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/azalea-entity/src/data.rs b/azalea-entity/src/data.rs index 4f6d8492..9b210400 100755 --- a/azalea-entity/src/data.rs +++ b/azalea-entity/src/data.rs @@ -24,6 +24,12 @@ pub struct EntityDataItem { pub value: EntityDataValue, } +impl EntityMetadataItems { + pub fn new(data: Vec) -> Self { + EntityMetadataItems(data) + } +} + impl McBufReadable for EntityMetadataItems { fn read_from(buf: &mut Cursor<&[u8]>) -> Result { let mut metadata = Vec::new(); -- cgit v1.2.3