Enum azalea_client::Event
source · pub enum Event {
Initialize,
Login,
Chat(ChatPacket),
Tick,
Packet(Box<ClientboundGamePacket>),
UpdatePlayers(UpdatePlayersEvent),
}Expand description
Events are sent before they’re processed, so for example game ticks happen at the beginning of a tick before anything has happened.
Variants
Initialize
Happens right after the bot switches into the Game state, but before
it’s actually spawned. This can be useful for setting the client
information with Client::set_client_information, so the packet
doesn’t have to be sent twice.
Login
Chat(ChatPacket)
Tick
Happens 20 times per second, but only when the world is loaded.
Packet(Box<ClientboundGamePacket>)
UpdatePlayers(UpdatePlayersEvent)
Happens when a player is added, removed, or updated in the tab list.
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Event
impl Send for Event
impl Sync for Event
impl Unpin for Event
impl UnwindSafe for Event
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more