Trait LivingHost
pub trait LivingHost {
// Provided method
fn living(&self, entity: EntityRef) -> Option<LivingRef> { ... }
}Expand description
The host’s methods both sides share of the living area, implemented by the game and reached through Host.
Provided Methods§
fn living(&self, entity: EntityRef) -> Option<LivingRef>
fn living(&self, entity: EntityRef) -> Option<LivingRef>
Side: both.
The entity as a living entity (vanilla’s LivingEntity: a mob, a
player, an armor stand or the dragon), or None for another kind or a
stale handle.
On a client, only the local player is one: the client keeps the others’ equipment, effects and health only as far as it draws them. API 382.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".