diff options
| author | mat <git@matdoes.dev> | 2023-07-31 21:56:56 -0500 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2023-07-31 21:56:56 -0500 |
| commit | b762d1dfb28f2e166e5c3b185a12d7b5a6b53885 (patch) | |
| tree | 3b2d3b6013dfa73ab566cd71885252b1fea7aace /azalea-entity | |
| parent | 39943447f68fede8e8ed6799cc8eee7bddecf945 (diff) | |
| download | azalea-drasl-b762d1dfb28f2e166e5c3b185a12d7b5a6b53885.tar.xz | |
add EntityDataItem::new
Diffstat (limited to 'azalea-entity')
| -rwxr-xr-x | azalea-entity/src/data.rs | 6 |
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(); |
