pub struct OnEntityRenamedEvent {
pub by_script: bool,
pub entity: LuaEntity,
pub name: &'static str,
pub old_name: &'static str,
pub player_index: u32,
pub tick: u32,
}Expand description
Called after an entity has been renamed either by the player or through script.
Fields§
§by_script: bool§entity: LuaEntity§name: &'static str§old_name: &'static str§player_index: u32§tick: u32Trait Implementations§
Source§impl Clone for OnEntityRenamedEvent
impl Clone for OnEntityRenamedEvent
Source§fn clone(&self) -> OnEntityRenamedEvent
fn clone(&self) -> OnEntityRenamedEvent
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 OnEntityRenamedEvent
Source§impl Debug for OnEntityRenamedEvent
impl Debug for OnEntityRenamedEvent
Source§impl Default for OnEntityRenamedEvent
impl Default for OnEntityRenamedEvent
Source§fn default() -> OnEntityRenamedEvent
fn default() -> OnEntityRenamedEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnEntityRenamedEvent
impl PartialEq for OnEntityRenamedEvent
impl StructuralPartialEq for OnEntityRenamedEvent
Auto Trait Implementations§
impl Freeze for OnEntityRenamedEvent
impl RefUnwindSafe for OnEntityRenamedEvent
impl Send for OnEntityRenamedEvent
impl Sync for OnEntityRenamedEvent
impl Unpin for OnEntityRenamedEvent
impl UnsafeUnpin for OnEntityRenamedEvent
impl UnwindSafe for OnEntityRenamedEvent
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