pub struct UseItemEvent {
pub player_name: String,
pub item_id: String,
}Expand description
Fired when a player right-clicks with an item (server side).
Fields§
§player_name: String§item_id: StringRegistry id of the held item, e.g. minecraft:stick.
Trait Implementations§
Source§impl Clone for UseItemEvent
impl Clone for UseItemEvent
Source§fn clone(&self) -> UseItemEvent
fn clone(&self) -> UseItemEvent
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for UseItemEvent
impl RefUnwindSafe for UseItemEvent
impl Send for UseItemEvent
impl Sync for UseItemEvent
impl Unpin for UseItemEvent
impl UnsafeUnpin for UseItemEvent
impl UnwindSafe for UseItemEvent
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