pub struct CraftEvent {
pub player_name: String,
pub player_uuid: String,
pub result_item: String,
pub result_count: u32,
}Expand description
Fired when a player takes a crafted item from a crafting output slot (Post only).
Fields§
§player_name: String§player_uuid: String§result_item: StringRegistry id of the crafted item, e.g. "minecraft:stick".
result_count: u32Trait Implementations§
Source§impl Clone for CraftEvent
impl Clone for CraftEvent
Source§fn clone(&self) -> CraftEvent
fn clone(&self) -> CraftEvent
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 CraftEvent
impl RefUnwindSafe for CraftEvent
impl Send for CraftEvent
impl Sync for CraftEvent
impl Unpin for CraftEvent
impl UnsafeUnpin for CraftEvent
impl UnwindSafe for CraftEvent
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