pub struct OnGuiOpenedEvent {
pub element: LuaGuiElement,
pub entity: LuaEntity,
pub equipment: LuaEquipment,
pub gui_type: &'static str,
pub inventory: LuaInventory,
pub item: LuaItemStack,
pub name: &'static str,
pub other_player: LuaPlayer,
pub player_index: u32,
pub surface_index: u32,
pub tick: u32,
pub tile_position: TilePosition,
}Expand description
Called when the player opens a GUI.
Fields§
§element: LuaGuiElement§entity: LuaEntity§equipment: LuaEquipment§gui_type: &'static str§inventory: LuaInventory§item: LuaItemStack§name: &'static str§other_player: LuaPlayer§player_index: u32§surface_index: u32§tick: u32§tile_position: TilePositionTrait Implementations§
Source§impl Clone for OnGuiOpenedEvent
impl Clone for OnGuiOpenedEvent
Source§fn clone(&self) -> OnGuiOpenedEvent
fn clone(&self) -> OnGuiOpenedEvent
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 OnGuiOpenedEvent
Source§impl Debug for OnGuiOpenedEvent
impl Debug for OnGuiOpenedEvent
Source§impl Default for OnGuiOpenedEvent
impl Default for OnGuiOpenedEvent
Source§fn default() -> OnGuiOpenedEvent
fn default() -> OnGuiOpenedEvent
Returns the “default value” for a type. Read more
Source§impl PartialEq for OnGuiOpenedEvent
impl PartialEq for OnGuiOpenedEvent
impl StructuralPartialEq for OnGuiOpenedEvent
Auto Trait Implementations§
impl Freeze for OnGuiOpenedEvent
impl RefUnwindSafe for OnGuiOpenedEvent
impl Send for OnGuiOpenedEvent
impl Sync for OnGuiOpenedEvent
impl Unpin for OnGuiOpenedEvent
impl UnsafeUnpin for OnGuiOpenedEvent
impl UnwindSafe for OnGuiOpenedEvent
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