Struct ClientInfo
pub struct ClientInfo {
pub language: String,
pub view_distance: i8,
pub chat_visibility: ChatVisibility,
pub chat_colors: bool,
pub model_customisation: u8,
pub main_hand: MainHand,
pub text_filtering: bool,
pub allows_listing: bool,
pub particle_status: ParticleStatus,
}Expand description
A player’s client options, as ServerboundClientInformationPacket carries them
(vanilla’s ClientInformation). Raw ids map as vanilla’s ByIdMap does: chat
visibility and particle status wrap (floorMod(id, 3)), the main hand reads an
unknown id as left.
Fields§
§language: StringThe client’s language code, such as en_us.
view_distance: i8The client’s view distance in chunks.
chat_visibility: ChatVisibilityWhich chat the client shows.
chat_colors: boolWhether the client shows chat colours.
model_customisation: u8Skin layer bits (PlayerModelPart).
main_hand: MainHandThe player’s main hand.
text_filtering: boolWhether the client asked for filtered text.
allows_listing: boolWhether the player shows in the server list sample.
particle_status: ParticleStatusHow many particles the client draws.
Trait Implementations§
§impl Clone for ClientInfo
impl Clone for ClientInfo
§fn clone(&self) -> ClientInfo
fn clone(&self) -> ClientInfo
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read more§impl Debug for ClientInfo
impl Debug for ClientInfo
impl Eq for ClientInfo
§impl PartialEq for ClientInfo
impl PartialEq for ClientInfo
impl StructuralPartialEq for ClientInfo
Auto Trait Implementations§
impl Freeze for ClientInfo
impl RefUnwindSafe for ClientInfo
impl Send for ClientInfo
impl Sync for ClientInfo
impl Unpin for ClientInfo
impl UnsafeUnpin for ClientInfo
impl UnwindSafe for ClientInfo
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more