pub struct OpenWindow {
pub window_id: u8,
pub inventory_type: ByteString,
pub window_title: ByteString,
pub slot_count: u8,
pub entity_id: Option<i32>,
}Expand description
open_window (clientbound play, id 0x2d).
Fields§
§window_id: u8windowId
inventory_type: ByteStringinventoryType
window_title: ByteStringwindowTitle
slot_count: u8slotCount
entity_id: Option<i32>entityId
Trait Implementations§
Source§impl Clone for OpenWindow
impl Clone for OpenWindow
Source§impl Debug for OpenWindow
impl Debug for OpenWindow
Source§impl Decode for OpenWindow
impl Decode for OpenWindow
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 OpenWindow
impl Encode for OpenWindow
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<OpenWindow> for ClientboundPlayPacket
impl From<OpenWindow> for ClientboundPlayPacket
Source§fn from(p: OpenWindow) -> Self
fn from(p: OpenWindow) -> Self
Converts to this type from the input type.
Source§impl Generate for OpenWindow
Available on crate feature testgen only.
impl Generate for OpenWindow
Available on crate feature
testgen only.Source§impl Packet for OpenWindow
impl Packet for OpenWindow
Source§impl PartialEq for OpenWindow
impl PartialEq for OpenWindow
impl StructuralPartialEq for OpenWindow
Auto Trait Implementations§
impl !Freeze for OpenWindow
impl RefUnwindSafe for OpenWindow
impl Send for OpenWindow
impl Sync for OpenWindow
impl Unpin for OpenWindow
impl UnsafeUnpin for OpenWindow
impl UnwindSafe for OpenWindow
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