pub enum ContainerClickType {
LeftClick,
RightClick,
ShiftClick,
DoubleClick,
DropSlot {
drop_all: bool,
},
HotbarSwap {
hotbar: u8,
},
OffhandSwap,
}Expand description
Mirror of server’s click action that plugins can safely consume.
Excludes transient click phases (DropCursor, StartDrag, AddDragSlot, EndDrag) which are internal details of the server’s click processing.
Variants§
LeftClick
Normal left click on a slot.
RightClick
Normal right click on a slot.
ShiftClick
Shift-click (quick-move).
DoubleClick
Double-click (collect matching items).
DropSlot
Q-key drop from a slot.
HotbarSwap
Number key swap with hotbar slot (0-8).
OffhandSwap
Swap with offhand slot (F key).
Trait Implementations§
Source§impl Clone for ContainerClickType
impl Clone for ContainerClickType
Source§fn clone(&self) -> ContainerClickType
fn clone(&self) -> ContainerClickType
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 ContainerClickType
impl Debug for ContainerClickType
Source§impl PartialEq for ContainerClickType
impl PartialEq for ContainerClickType
impl Copy for ContainerClickType
impl Eq for ContainerClickType
impl StructuralPartialEq for ContainerClickType
Auto Trait Implementations§
impl Freeze for ContainerClickType
impl RefUnwindSafe for ContainerClickType
impl Send for ContainerClickType
impl Sync for ContainerClickType
impl Unpin for ContainerClickType
impl UnsafeUnpin for ContainerClickType
impl UnwindSafe for ContainerClickType
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.