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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
use std::ops::{Deref, DerefMut};

use super::PathfinderMob;

mod base_piglin;
pub use base_piglin::*;
mod blaze;
pub use blaze::*;
mod creeper;
pub use creeper::*;
mod endermite;
pub use endermite::*;
mod giant;
pub use giant::*;
mod raider;
pub use raider::*;
mod vex;
pub use vex::*;
mod abstract_skeleton;
pub use abstract_skeleton::*;
mod spider;
pub use spider::*;
mod warden;
pub use warden::*;
mod wither;
pub use wither::*;
mod zoglin;
pub use zoglin::*;
mod zombie;
pub use zombie::*;
mod enderman;
pub use enderman::*;
mod guardian;
pub use guardian::*;

/// An interface of a monster
#[derive(PartialEq, Default)]
pub struct Monster {
    pathfinder_mob: PathfinderMob,
}
impl Deref for Monster {
    type Target = PathfinderMob;

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