pub struct OpenContainer {
pub window_id: u8,
pub inventory_type: InventoryType,
pub backing: ContainerBacking,
}Expand description
Tracks that a player currently has a non-inventory window open.
Present on the player entity from the moment an OpenWindow packet is sent until a CloseWindow packet is received (or the player disconnects). Removed on close.
Fields§
§window_id: u8Protocol window ID (1-127) assigned when opening.
inventory_type: InventoryTypeThe kind of inventory that was opened.
backing: ContainerBackingHow the container is backed in the world.
Trait Implementations§
Source§impl Clone for OpenContainer
impl Clone for OpenContainer
Source§fn clone(&self) -> OpenContainer
fn clone(&self) -> OpenContainer
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 OpenContainer
impl Debug for OpenContainer
impl Component for OpenContainer
Auto Trait Implementations§
impl Freeze for OpenContainer
impl RefUnwindSafe for OpenContainer
impl Send for OpenContainer
impl Sync for OpenContainer
impl Unpin for OpenContainer
impl UnsafeUnpin for OpenContainer
impl UnwindSafe for OpenContainer
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