pub struct OnPlayerFlippedEntityEvent {
pub entity: LuaEntity,
pub horizontal: bool,
pub name: &'static str,
pub player_index: u32,
pub tick: u32,
}Expand description
Called when the player flips an entity. This event is only fired when the entity actually changes its orientation or mirroring, so it won’t be triggered when pressing the flip keys on an entity that can’t be flipped.
This event reflects a change in the LuaEntity::mirroring property.
Fields§
§entity: LuaEntity§horizontal: bool§name: &'static str§player_index: u32§tick: u32Trait Implementations§
Source§impl Clone for OnPlayerFlippedEntityEvent
impl Clone for OnPlayerFlippedEntityEvent
Source§fn clone(&self) -> OnPlayerFlippedEntityEvent
fn clone(&self) -> OnPlayerFlippedEntityEvent
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 OnPlayerFlippedEntityEvent
Source§impl Debug for OnPlayerFlippedEntityEvent
impl Debug for OnPlayerFlippedEntityEvent
Source§impl Default for OnPlayerFlippedEntityEvent
impl Default for OnPlayerFlippedEntityEvent
Source§fn default() -> OnPlayerFlippedEntityEvent
fn default() -> OnPlayerFlippedEntityEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnPlayerFlippedEntityEvent
Auto Trait Implementations§
impl Freeze for OnPlayerFlippedEntityEvent
impl RefUnwindSafe for OnPlayerFlippedEntityEvent
impl Send for OnPlayerFlippedEntityEvent
impl Sync for OnPlayerFlippedEntityEvent
impl Unpin for OnPlayerFlippedEntityEvent
impl UnsafeUnpin for OnPlayerFlippedEntityEvent
impl UnwindSafe for OnPlayerFlippedEntityEvent
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