Skip to main content

MobsHost

Trait MobsHost 

pub trait MobsHost {
    // Provided method
    fn mob(&self, entity: EntityRef) -> Option<MobRef> { ... }
}
Expand description

The host’s methods both sides share of the mobs area, implemented by the game and reached through Host.

Provided Methods§

fn mob(&self, entity: EntityRef) -> Option<MobRef>

Side: both. The entity as a vanilla Mob: a mob or the ender dragon. Players, armor stands, stale handles and clients are rejected. Mobs taken out for ticking are unavailable (a #29 follow-up).

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§