Skip to main content

MerchantsServerHost

Trait MerchantsServerHost 

pub trait MerchantsServerHost {
    // Provided method
    fn merchant(&self, entity: EntityRef) -> Option<MerchantRef> { ... }
}
Expand description

The server host’s methods of the merchants area, implemented by the game and reached through ServerHost.

Provided Methods§

fn merchant(&self, entity: EntityRef) -> Option<MerchantRef>

Side: server. Narrows an entity to a villager or wandering trader, or None for another kind, a stale handle, or a client.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§