Struct ItemFished
#[non_exhaustive]pub struct ItemFished<'a> {
pub hook: u32,
pub position: [f64; 3],
pub drops: &'a [ItemStack],
}Expand description
A fishing catch, for item_fished (ItemFishedEvent).
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.hook: u32The bobber’s entity id and position.
position: [f64; 3]The position.
drops: &'a [ItemStack]The items the fishing loot table rolled, which the player receives
(getDrops: they can’t be changed here; loot tables change them).
Trait Implementations§
§impl<'a> Clone for ItemFished<'a>
impl<'a> Clone for ItemFished<'a>
§fn clone(&self) -> ItemFished<'a>
fn clone(&self) -> ItemFished<'a>
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<'a> Copy for ItemFished<'a>
§impl<'a> Debug for ItemFished<'a>
impl<'a> Debug for ItemFished<'a>
§impl<'a> From<ItemFished<'a>> for ItemFished<'a>
impl<'a> From<ItemFished<'a>> for ItemFished<'a>
§fn from(v: ItemFished<'a>) -> ItemFished<'a>
fn from(v: ItemFished<'a>) -> ItemFished<'a>
Converts to this type from the input type.
Auto Trait Implementations§
impl<'a> Freeze for ItemFished<'a>
impl<'a> RefUnwindSafe for ItemFished<'a>
impl<'a> Send for ItemFished<'a>
impl<'a> Sync for ItemFished<'a>
impl<'a> Unpin for ItemFished<'a>
impl<'a> UnsafeUnpin for ItemFished<'a>
impl<'a> UnwindSafe for ItemFished<'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