pub struct OnPlayerRotatedEntityEvent {
pub entity: LuaEntity,
pub name: &'static str,
pub player_index: u32,
pub previous_direction: &'static str,
pub previous_mirroring: bool,
pub tick: u32,
}Expand description
Called when the player rotates an entity. This event is only fired when the entity actually changes its orientation – pressing the rotate key on an entity that can’t be rotated won’t fire this event.
Entities being flipped will not fire this event, even if the flip involves rotating. See on_player_flipped_entity.
Fields§
§entity: LuaEntity§name: &'static str§player_index: u32§previous_direction: &'static str§previous_mirroring: bool§tick: u32Trait Implementations§
Source§impl Clone for OnPlayerRotatedEntityEvent
impl Clone for OnPlayerRotatedEntityEvent
Source§fn clone(&self) -> OnPlayerRotatedEntityEvent
fn clone(&self) -> OnPlayerRotatedEntityEvent
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 OnPlayerRotatedEntityEvent
Source§impl Debug for OnPlayerRotatedEntityEvent
impl Debug for OnPlayerRotatedEntityEvent
Source§impl Default for OnPlayerRotatedEntityEvent
impl Default for OnPlayerRotatedEntityEvent
Source§fn default() -> OnPlayerRotatedEntityEvent
fn default() -> OnPlayerRotatedEntityEvent
Returns the “default value” for a type. Read more
impl StructuralPartialEq for OnPlayerRotatedEntityEvent
Auto Trait Implementations§
impl Freeze for OnPlayerRotatedEntityEvent
impl RefUnwindSafe for OnPlayerRotatedEntityEvent
impl Send for OnPlayerRotatedEntityEvent
impl Sync for OnPlayerRotatedEntityEvent
impl Unpin for OnPlayerRotatedEntityEvent
impl UnsafeUnpin for OnPlayerRotatedEntityEvent
impl UnwindSafe for OnPlayerRotatedEntityEvent
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