Struct EnchantedBlockLootEvent
pub struct EnchantedBlockLootEvent<'a> {
pub dimension: Dimension,
pub pos: BlockPos,
pub state: BlockState,
pub tool: Option<&'a ItemStack>,
pub enchantment: &'a Identifier,
pub level: u32,
pub entity: Option<EntityRef>,
}Expand description
What Hooks::enchanted_block_loot is told. Each field is that hook’s argument of the same name, described in the hook’s doc.
Fields§
§dimension: Dimension§pos: BlockPos§state: BlockState§tool: Option<&'a ItemStack>§enchantment: &'a Identifier§level: u32§entity: Option<EntityRef>Auto Trait Implementations§
impl<'a> Freeze for EnchantedBlockLootEvent<'a>
impl<'a> RefUnwindSafe for EnchantedBlockLootEvent<'a>
impl<'a> Send for EnchantedBlockLootEvent<'a>
impl<'a> Sync for EnchantedBlockLootEvent<'a>
impl<'a> Unpin for EnchantedBlockLootEvent<'a>
impl<'a> UnsafeUnpin for EnchantedBlockLootEvent<'a>
impl<'a> UnwindSafe for EnchantedBlockLootEvent<'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