Struct MenuButtonEvent
pub struct MenuButtonEvent<'a> {
pub context: &'a MenuButtonContext,
pub entity: ModBlockEntityView<'a>,
pub carried: &'a mut Option<ItemStack>,
}Expand description
What BlockEntityPart::menu_button is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§context: &'a MenuButtonContext§entity: ModBlockEntityView<'a>§carried: &'a mut Option<ItemStack>Auto Trait Implementations§
impl<'a> !UnwindSafe for MenuButtonEvent<'a>
impl<'a> Freeze for MenuButtonEvent<'a>
impl<'a> RefUnwindSafe for MenuButtonEvent<'a>
impl<'a> Send for MenuButtonEvent<'a>
impl<'a> Sync for MenuButtonEvent<'a>
impl<'a> Unpin for MenuButtonEvent<'a>
impl<'a> UnsafeUnpin for MenuButtonEvent<'a>
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