pub struct SetPassengers { /* private fields */ }Implementations§
Source§impl SetPassengers
impl SetPassengers
Sourcepub fn deserialize<R: Read>(r: &mut R) -> Result<ClientboundPacket>
pub fn deserialize<R: Read>(r: &mut R) -> Result<ClientboundPacket>
Deserializes a Read type into a packet. You usually won’t need to use this.
Sourcepub fn to_u8(&self) -> Result<Vec<u8>>
pub fn to_u8(&self) -> Result<Vec<u8>>
Serializes the packet into Vec
pub fn new(entity_id: i32, passengers: Vec<i32>) -> ClientboundPacket
Sourcepub fn get_entity_id(&self) -> &i32
pub fn get_entity_id(&self) -> &i32
Get the entity ID
Sourcepub fn get_passengers(&self) -> &Vec<i32>
pub fn get_passengers(&self) -> &Vec<i32>
Get the vec of all the passengers
Trait Implementations§
Source§impl Clone for SetPassengers
impl Clone for SetPassengers
Source§fn clone(&self) -> SetPassengers
fn clone(&self) -> SetPassengers
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 SetPassengers
impl Debug for SetPassengers
Source§impl PartialEq for SetPassengers
impl PartialEq for SetPassengers
impl StructuralPartialEq for SetPassengers
Auto Trait Implementations§
impl Freeze for SetPassengers
impl RefUnwindSafe for SetPassengers
impl Send for SetPassengers
impl Sync for SetPassengers
impl Unpin for SetPassengers
impl UnsafeUnpin for SetPassengers
impl UnwindSafe for SetPassengers
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