Trait BotClientExt

Source
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_one_tick(&self) -> impl Future<Output = ()> + Send;
    fn wait_one_update(&self) -> impl Future<Output = ()> + Send;
    fn mine(&self, position: BlockPos) -> impl Future<Output = ()> + Send;
}

Required Methods§

Source

fn jump(&self)

Queue a jump for the next tick.

Source

fn look_at(&self, pos: Vec3)

Turn the bot’s head to look at the coordinate in the world.

Source

fn get_tick_broadcaster(&self) -> Receiver<()>

Get a receiver that will receive a message every tick.

Source

fn get_update_broadcaster(&self) -> Receiver<()>

Get a receiver that will receive a message every ECS Update.

Source

fn wait_one_tick(&self) -> impl Future<Output = ()> + Send

Wait for one tick.

Source

fn wait_one_update(&self) -> impl Future<Output = ()> + Send

Wait for one ECS Update.

Source

fn mine(&self, position: BlockPos) -> impl Future<Output = ()> + Send

Mine a block. This won’t turn the bot’s head towards the block, so if that’s necessary you’ll have to do that yourself with look_at.

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.

Implementors§