Skip to main content

ItemEntitiesHost

Trait ItemEntitiesHost 

pub trait ItemEntitiesHost {
    // Provided method
    fn item_entity(&self, entity: EntityRef) -> Option<ItemEntityRef> { ... }
}
Expand description

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

Provided Methods§

fn item_entity(&self, entity: EntityRef) -> Option<ItemEntityRef>

Side: both. Narrows an entity to a dropped item, or None for another kind, a stale handle, a client, or an item temporarily taken out for ticking.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§