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