Skip to main content

MinecartsServerHost

Trait MinecartsServerHost 

pub trait MinecartsServerHost {
    // Provided method
    fn minecart(&self, entity: EntityRef) -> Option<MinecartRef> { ... }
}
Expand description

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

Provided Methods§

fn minecart(&self, entity: EntityRef) -> Option<MinecartRef>

Side: server. Narrows an entity to a minecart of any kind, or None for another kind of entity, a stale handle, a client, or an entity held out of storage.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§