1
2
Fork 0
mirror of https://github.com/mat-1/azalea.git synced 2025-08-02 06:16:04 +00:00

add EntityDataItem::new

This commit is contained in:
mat 2023-07-31 21:56:56 -05:00
parent 39943447f6
commit b762d1dfb2

View file

@ -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();