aboutsummaryrefslogtreecommitdiff
path: root/azalea-entity/src
diff options
context:
space:
mode:
authormat <git@matdoes.dev>2023-07-31 21:56:56 -0500
committermat <git@matdoes.dev>2023-07-31 21:56:56 -0500
commitb762d1dfb28f2e166e5c3b185a12d7b5a6b53885 (patch)
tree3b2d3b6013dfa73ab566cd71885252b1fea7aace /azalea-entity/src
parent39943447f68fede8e8ed6799cc8eee7bddecf945 (diff)
downloadazalea-drasl-b762d1dfb28f2e166e5c3b185a12d7b5a6b53885.tar.xz
add EntityDataItem::new
Diffstat (limited to 'azalea-entity/src')
-rwxr-xr-xazalea-entity/src/data.rs6
1 files changed, 6 insertions, 0 deletions
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<EntityDataItem>) -> Self {
+ EntityMetadataItems(data)
+ }
+}
+
impl McBufReadable for EntityMetadataItems {
fn read_from(buf: &mut Cursor<&[u8]>) -> Result<Self, BufReadError> {
let mut metadata = Vec::new();