pub enum WindowSlotKind {
CraftOutput,
CraftGrid,
Armor,
MainInventory,
Hotbar,
Offhand,
Container,
}Expand description
Categorises which slot was clicked, independent of window type.
Variants§
CraftOutput
Crafting output slot (in crafting table or player inventory 2x2).
CraftGrid
Crafting grid input slot.
Armor
Armor slot.
MainInventory
Main player inventory slot (rows under hotbar).
Hotbar
Hotbar slot.
Offhand
Offhand slot.
Container
Container slot (chest slot, hopper slot, etc.).
Trait Implementations§
Source§impl Clone for WindowSlotKind
impl Clone for WindowSlotKind
Source§fn clone(&self) -> WindowSlotKind
fn clone(&self) -> WindowSlotKind
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 WindowSlotKind
impl Debug for WindowSlotKind
Source§impl PartialEq for WindowSlotKind
impl PartialEq for WindowSlotKind
impl Copy for WindowSlotKind
impl Eq for WindowSlotKind
impl StructuralPartialEq for WindowSlotKind
Auto Trait Implementations§
impl Freeze for WindowSlotKind
impl RefUnwindSafe for WindowSlotKind
impl Send for WindowSlotKind
impl Sync for WindowSlotKind
impl Unpin for WindowSlotKind
impl UnsafeUnpin for WindowSlotKind
impl UnwindSafe for WindowSlotKind
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.