pub struct PickItem { /* private fields */ }Implementations§
Source§impl PickItem
impl PickItem
Sourcepub fn deserialize<R: Read>(r: &mut R) -> Result<ServerboundPacket>
pub fn deserialize<R: Read>(r: &mut R) -> Result<ServerboundPacket>
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(slot_to_use: i32) -> ServerboundPacket
Sourcepub fn get_slot_to_use(&self) -> &i32
pub fn get_slot_to_use(&self) -> &i32
Get the slot to use
Trait Implementations§
impl StructuralPartialEq for PickItem
Auto Trait Implementations§
impl Freeze for PickItem
impl RefUnwindSafe for PickItem
impl Send for PickItem
impl Sync for PickItem
impl Unpin for PickItem
impl UnsafeUnpin for PickItem
impl UnwindSafe for PickItem
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