pub struct Window { /* private fields */ }Expand description
An open container window.
Implementations§
Source§impl Window
impl Window
👎Deprecated since 0.5.3: use menu_modern
use menu_modern
Alias of Window::menu_modern.
Source§impl Window
impl Window
Sourcepub fn kind(&self) -> WindowKind
pub fn kind(&self) -> WindowKind
Its type.
Sourcepub fn title(&self) -> &ByteString
pub fn title(&self) -> &ByteString
The title exactly as sent: a JSON chat component on both versions.
Sourcepub fn property(&self, id: i16) -> Option<i16>
pub fn property(&self, id: i16) -> Option<i16>
A window property (craft_progress_bar: furnace progress, enchanting seeds, …).
26.1: the minecraft:menu registry id of open_screen (None for other versions).
Trait Implementations§
impl Eq for Window
impl StructuralPartialEq for Window
Auto Trait Implementations§
impl !Freeze for Window
impl Forget for Window
impl Move for Window
impl RefUnwindSafe for Window
impl Send for Window
impl Sync for Window
impl Unpin for Window
impl UnsafeUnpin for Windowwhere
*const u8: UnsafeUnpin,
Align8<*mut ()>: UnsafeUnpin,
&'static Vtable: UnsafeUnpin,
*const u8 is !null: UnsafeUnpin,
PhantomData<(i16, i16)>: UnsafeUnpin,
impl UnwindSafe for Windowwhere
*const u8: UnwindSafe,
Align8<*mut ()>: UnwindSafe,
&'static Vtable: UnwindSafe,
RawVecInner: UnwindSafe,
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