pub trait BotClientExt {
// Required methods
fn jump(&self);
fn look_at(&self, pos: Vec3);
fn get_tick_broadcaster(&self) -> Receiver<()>;
fn get_update_broadcaster(&self) -> Receiver<()>;
fn wait_ticks(&self, n: usize) -> impl Future<Output = ()> + Send;
fn wait_updates(&self, n: usize) -> impl Future<Output = ()> + Send;
fn mine(&self, position: BlockPos) -> impl Future<Output = ()> + Send;
}
Required Methods§
Sourcefn get_tick_broadcaster(&self) -> Receiver<()>
fn get_tick_broadcaster(&self) -> Receiver<()>
Get a receiver that will receive a message every tick.
Sourcefn get_update_broadcaster(&self) -> Receiver<()>
fn get_update_broadcaster(&self) -> Receiver<()>
Get a receiver that will receive a message every ECS Update.
Sourcefn wait_ticks(&self, n: usize) -> impl Future<Output = ()> + Send
fn wait_ticks(&self, n: usize) -> impl Future<Output = ()> + Send
Wait for the specified number of game ticks.
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.