pub struct OnPlayerMinedEntity;Expand description
Called after the results of an entity being mined are collected just before the entity is destroyed.
After this event any items in the buffer will be transferred into the player as if they came from mining the entity.
The buffer inventory is special in that it’s only valid during this event and has a dynamic size expanding as more items are transferred into it.
Implementations§
Trait Implementations§
Source§impl Clone for OnPlayerMinedEntity
impl Clone for OnPlayerMinedEntity
Source§fn clone(&self) -> OnPlayerMinedEntity
fn clone(&self) -> OnPlayerMinedEntity
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 moreimpl Copy for OnPlayerMinedEntity
Source§impl Debug for OnPlayerMinedEntity
impl Debug for OnPlayerMinedEntity
impl Eq for OnPlayerMinedEntity
Source§impl PartialEq for OnPlayerMinedEntity
impl PartialEq for OnPlayerMinedEntity
impl StructuralPartialEq for OnPlayerMinedEntity
Auto Trait Implementations§
impl Freeze for OnPlayerMinedEntity
impl RefUnwindSafe for OnPlayerMinedEntity
impl Send for OnPlayerMinedEntity
impl Sync for OnPlayerMinedEntity
impl Unpin for OnPlayerMinedEntity
impl UnsafeUnpin for OnPlayerMinedEntity
impl UnwindSafe for OnPlayerMinedEntity
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