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:
parent
39943447f6
commit
b762d1dfb2
1 changed files with 6 additions and 0 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue