fix: 26.1 attack packet
This commit is contained in:
1 parent
7f95d43982
commit
8a6698cd21
18 files changed
+164
-89
No files matched your search
@@ -0,0 +1,26 @@
|
||||
use std::sync::Arc;
|
||||
|
||||
use crate::entity::{
|
||||
Entity, NBTStorage,
|
||||
mob::{Mob, MobEntity},
|
||||
};
|
||||
|
||||
pub struct EnderDragonEntity {
|
||||
pub mob_entity: MobEntity,
|
||||
}
|
||||
|
||||
impl EnderDragonEntity {
|
||||
pub fn new(entity: Entity) -> Arc<Self> {
|
||||
let mob_entity = MobEntity::new(entity);
|
||||
let dragon = Self { mob_entity };
|
||||
Arc::new(dragon)
|
||||
}
|
||||
}
|
||||
|
||||
impl NBTStorage for EnderDragonEntity {}
|
||||
|
||||
impl Mob for EnderDragonEntity {
|
||||
fn get_mob_entity(&self) -> &MobEntity {
|
||||
&self.mob_entity
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user