diff options
Diffstat (limited to 'azalea-entity/src')
| -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(); |
