mirror of
https://github.com/mat-1/azalea.git
synced 2025-08-02 14:26:04 +00:00
impl from u32 for minecraftentityid
This commit is contained in:
parent
aeff08f5fa
commit
d6a4d91347
1 changed files with 5 additions and 0 deletions
|
@ -102,6 +102,11 @@ impl From<i32> for MinecraftEntityId {
|
||||||
Self(id)
|
Self(id)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
impl From<u32> for MinecraftEntityId {
|
||||||
|
fn from(id: u32) -> Self {
|
||||||
|
Self(id as i32)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// Keep track of certain metadatas that are only relevant for this partial
|
/// Keep track of certain metadatas that are only relevant for this partial
|
||||||
/// world.
|
/// world.
|
||||||
|
|
Loading…
Add table
Reference in a new issue