pub enum PlayerInfoActionList {
Add(CountedArray<PlayerInfoAction<PlayerAddActionSpec>, VarInt>),
UpdateGameMode(CountedArray<PlayerInfoAction<GameMode>, VarInt>),
UpdateLatency(CountedArray<PlayerInfoAction<VarInt>, VarInt>),
UpdateDisplayName(CountedArray<PlayerInfoAction<Option<Chat>>, VarInt>),
Remove(CountedArray<UUID4, VarInt>),
}Variants§
Add(CountedArray<PlayerInfoAction<PlayerAddActionSpec>, VarInt>)
UpdateGameMode(CountedArray<PlayerInfoAction<GameMode>, VarInt>)
UpdateLatency(CountedArray<PlayerInfoAction<VarInt>, VarInt>)
UpdateDisplayName(CountedArray<PlayerInfoAction<Option<Chat>>, VarInt>)
Remove(CountedArray<UUID4, VarInt>)
Implementations§
Source§impl PlayerInfoActionList
impl PlayerInfoActionList
pub const fn variant_count() -> usize
pub fn deserialize_with_id<'a>( id: VarInt, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn name(&self) -> &str
pub fn id(&self) -> VarInt
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Clone for PlayerInfoActionList
impl Clone for PlayerInfoActionList
Source§fn clone(&self) -> PlayerInfoActionList
fn clone(&self) -> PlayerInfoActionList
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for PlayerInfoActionList
impl Debug for PlayerInfoActionList
Source§impl Deserialize for PlayerInfoActionList
impl Deserialize for PlayerInfoActionList
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl From<PlayPlayerInfoSpec> for PlayerInfoActionList
impl From<PlayPlayerInfoSpec> for PlayerInfoActionList
Source§fn from(other: PlayPlayerInfoSpec) -> Self
fn from(other: PlayPlayerInfoSpec) -> Self
Converts to this type from the input type.
Source§impl From<PlayerInfoActionList> for PlayPlayerInfoSpec
impl From<PlayerInfoActionList> for PlayPlayerInfoSpec
Source§fn from(other: PlayerInfoActionList) -> Self
fn from(other: PlayerInfoActionList) -> Self
Converts to this type from the input type.
Source§impl PartialEq for PlayerInfoActionList
impl PartialEq for PlayerInfoActionList
Source§impl Serialize for PlayerInfoActionList
impl Serialize for PlayerInfoActionList
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for PlayerInfoActionList
Auto Trait Implementations§
impl Freeze for PlayerInfoActionList
impl RefUnwindSafe for PlayerInfoActionList
impl Send for PlayerInfoActionList
impl Sync for PlayerInfoActionList
impl Unpin for PlayerInfoActionList
impl UnwindSafe for PlayerInfoActionList
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