1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29

use std::ops::{Deref, DerefMut};

use super::PathfinderMob;

mod iron_golem;
pub use iron_golem::*;
mod snow_golem;
pub use snow_golem::*;
mod shulker;
pub use shulker::*;

/// An interface for Golem like mobs
#[derive(Default)]
pub struct AbstractGolem {
    pathfinder_mob: PathfinderMob,
}
impl Deref for AbstractGolem {
    type Target = PathfinderMob;

    fn deref(&self) -> &Self::Target {
        &self.pathfinder_mob
    }
}
impl DerefMut for AbstractGolem {
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.pathfinder_mob
    }
}