Struct BlockEntityProviders
pub struct BlockEntityProviders<T>where
T: 'static + ?Sized,{ /* private fields */ }Expand description
A block entity’s providers of one capability (block_entity_providers).
Implementations§
§impl<T> BlockEntityProviders<T>where
T: 'static + ?Sized,
impl<T> BlockEntityProviders<T>where
T: 'static + ?Sized,
pub fn ask(self, host: &mut dyn ServerHost, game: bool) -> Option<Capability<T>>
pub fn ask(self, host: &mut dyn ServerHost, game: bool) -> Option<Capability<T>>
A mod’s handler where the game would answer with its own unless a mod comes first: one
registered before_game, else, where the game has no answer (game), the first mod’s.
Auto Trait Implementations§
impl<T> !RefUnwindSafe for BlockEntityProviders<T>
impl<T> !UnwindSafe for BlockEntityProviders<T>
impl<T> Freeze for BlockEntityProviders<T>where
T: ?Sized,
impl<T> Send for BlockEntityProviders<T>where
T: ?Sized,
impl<T> Sync for BlockEntityProviders<T>where
T: ?Sized,
impl<T> Unpin for BlockEntityProviders<T>where
T: ?Sized,
impl<T> UnsafeUnpin for BlockEntityProviders<T>where
T: ?Sized,
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