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