pub struct OnPlayerMinedEntityEvent {
pub buffer: LuaInventory,
pub entity: LuaEntity,
pub name: &'static str,
pub player_index: u32,
pub tick: u32,
}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.
Fields§
§buffer: LuaInventory§entity: LuaEntity§name: &'static str§player_index: u32§tick: u32Trait Implementations§
Source§impl Clone for OnPlayerMinedEntityEvent
impl Clone for OnPlayerMinedEntityEvent
Source§fn clone(&self) -> OnPlayerMinedEntityEvent
fn clone(&self) -> OnPlayerMinedEntityEvent
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 OnPlayerMinedEntityEvent
Source§impl Debug for OnPlayerMinedEntityEvent
impl Debug for OnPlayerMinedEntityEvent
Source§impl Default for OnPlayerMinedEntityEvent
impl Default for OnPlayerMinedEntityEvent
Source§fn default() -> OnPlayerMinedEntityEvent
fn default() -> OnPlayerMinedEntityEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnPlayerMinedEntityEvent
impl PartialEq for OnPlayerMinedEntityEvent
impl StructuralPartialEq for OnPlayerMinedEntityEvent
Auto Trait Implementations§
impl Freeze for OnPlayerMinedEntityEvent
impl RefUnwindSafe for OnPlayerMinedEntityEvent
impl Send for OnPlayerMinedEntityEvent
impl Sync for OnPlayerMinedEntityEvent
impl Unpin for OnPlayerMinedEntityEvent
impl UnsafeUnpin for OnPlayerMinedEntityEvent
impl UnwindSafe for OnPlayerMinedEntityEvent
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