pub struct WindowClick {
pub window_id: u8,
pub slot: i16,
pub mouse_button: i8,
pub action: i16,
pub mode: i8,
pub item: Slot,
}Expand description
window_click (serverbound play, id 0x09).
Fields§
§window_id: u8windowId
slot: i16slot
mouseButton
action: i16action
mode: i8mode
item: Slotitem
Trait Implementations§
Source§impl Clone for WindowClick
impl Clone for WindowClick
Source§impl Debug for WindowClick
impl Debug for WindowClick
Source§impl Decode for WindowClick
impl Decode for WindowClick
Source§fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
fn decode(r: &mut Reader<'_>) -> DecodeResult<Self>
Decodes one value, advancing the reader past it.
Source§impl Encode for WindowClick
impl Encode for WindowClick
Source§fn encode(&self, w: &mut BytesMut) -> EncodeResult
fn encode(&self, w: &mut BytesMut) -> EncodeResult
Appends the encoding of
self to w.Source§impl From<WindowClick> for ServerboundPlayPacket
impl From<WindowClick> for ServerboundPlayPacket
Source§fn from(p: WindowClick) -> Self
fn from(p: WindowClick) -> Self
Converts to this type from the input type.
Source§impl Generate for WindowClick
Available on crate feature testgen only.
impl Generate for WindowClick
Available on crate feature
testgen only.Source§impl Packet for WindowClick
impl Packet for WindowClick
Source§impl PartialEq for WindowClick
impl PartialEq for WindowClick
impl StructuralPartialEq for WindowClick
Auto Trait Implementations§
impl !Freeze for WindowClick
impl RefUnwindSafe for WindowClick
impl Send for WindowClick
impl Sync for WindowClick
impl Unpin for WindowClick
impl UnsafeUnpin for WindowClick
impl UnwindSafe for WindowClick
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