pub struct Interests(/* private fields */);Expand description
A set of optional packet groups (see the associated constants).
Implementations§
Source§impl Interests
impl Interests
Sourcepub const CHAT: Interests
pub const CHAT: Interests
Chat messages (crate::TickEvents::chat).
Sourcepub const ENTITIES: Interests
pub const ENTITIES: Interests
Entities (spawns, moves, metadata, equipment, effects): crate::TickContext::entities
and the entity crosshair / attack / interact. Can be switched at run time: tracking then
starts empty (entities already spawned stay unknown until the server sends them again)
and switching off frees the store.
Sourcepub const PLAYER_LIST: Interests
pub const PLAYER_LIST: Interests
The tab list (player names and UUIDs) on top of Interests::ENTITIES — the most
expensive packet on busy servers. Switching it restarts the tracker empty.
Sourcepub const PLAYER_SKINS: Interests
pub const PLAYER_SKINS: Interests
Skin / cape textures (the base64 "textures" profile property) of tab-list entries,
on top of Interests::PLAYER_LIST (PlayerInfo::textures). Switching it restarts
the tracker empty.
Sourcepub const BLOCK_UPDATES: Interests
pub const BLOCK_UPDATES: Interests
Block changes (1.8 S23/S22, 1.16 block_change / multi_block_change) as
crate::TickEvents::block_updates. The world applies them either way; this only
collects them for the behaviour.
Trait Implementations§
Source§impl BitOrAssign for Interests
impl BitOrAssign for Interests
Source§fn bitor_assign(&mut self, rhs: Interests)
fn bitor_assign(&mut self, rhs: Interests)
|= operation. Read more