Struct PlayerSwitchHotbarSlotPostEvent
pub struct PlayerSwitchHotbarSlotPostEvent {
pub player: u128,
pub player_entity_id: i32,
pub old_slot: i32,
pub new_slot: i32,
}Expand description
What Hooks::player_switch_hotbar_slot_post is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§player: u128§player_entity_id: i32§old_slot: i32§new_slot: i32Trait Implementations§
Auto Trait Implementations§
impl Freeze for PlayerSwitchHotbarSlotPostEvent
impl RefUnwindSafe for PlayerSwitchHotbarSlotPostEvent
impl Send for PlayerSwitchHotbarSlotPostEvent
impl Sync for PlayerSwitchHotbarSlotPostEvent
impl Unpin for PlayerSwitchHotbarSlotPostEvent
impl UnsafeUnpin for PlayerSwitchHotbarSlotPostEvent
impl UnwindSafe for PlayerSwitchHotbarSlotPostEvent
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