pub struct OnEntityColorChangedEvent {
pub entity: LuaEntity,
pub name: &'static str,
pub tick: u32,
}Expand description
Called after an entity has been recolored either by the player or through script.
Automatic recoloring due to LuaPlayer::color will not raise events, as that is a separate mechanism.
Fields§
§entity: LuaEntity§name: &'static str§tick: u32Trait Implementations§
Source§impl Clone for OnEntityColorChangedEvent
impl Clone for OnEntityColorChangedEvent
Source§fn clone(&self) -> OnEntityColorChangedEvent
fn clone(&self) -> OnEntityColorChangedEvent
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 OnEntityColorChangedEvent
Source§impl Debug for OnEntityColorChangedEvent
impl Debug for OnEntityColorChangedEvent
Source§impl Default for OnEntityColorChangedEvent
impl Default for OnEntityColorChangedEvent
Source§fn default() -> OnEntityColorChangedEvent
fn default() -> OnEntityColorChangedEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnEntityColorChangedEvent
Auto Trait Implementations§
impl Freeze for OnEntityColorChangedEvent
impl RefUnwindSafe for OnEntityColorChangedEvent
impl Send for OnEntityColorChangedEvent
impl Sync for OnEntityColorChangedEvent
impl Unpin for OnEntityColorChangedEvent
impl UnsafeUnpin for OnEntityColorChangedEvent
impl UnwindSafe for OnEntityColorChangedEvent
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