Struct FishingHookRef
pub struct FishingHookRef(/* private fields */);Expand description
A cast fishing hook of the open world (vanilla’s FishingHook), narrowed
from an entity with host.fishing_hook(entity). It does not narrow to a
ProjectileRef: a hook’s owner is always the player who cast it.
Implementations§
§impl FishingHookRef
impl FishingHookRef
pub fn player_owner(self, host: &dyn Host) -> Option<EntityRef>
pub fn player_owner(self, host: &dyn Host) -> Option<EntityRef>
Side: server.
FishingHook.getPlayerOwner: the player who cast it. None for a stale
handle.
pub fn hooked_in(self, host: &dyn Host) -> Option<EntityRef>
pub fn hooked_in(self, host: &dyn Host) -> Option<EntityRef>
Side: server.
FishingHook.getHookedIn: what it holds. None when it holds nothing,
what it holds is gone, or for a stale handle.
pub fn open_water(self, host: &dyn Host) -> Option<bool>
pub fn open_water(self, host: &dyn Host) -> Option<bool>
Side: server.
FishingHook.isOpenWaterFishing, which the fishing loot’s
in_open_water predicate reads. None for a stale handle.
§impl FishingHookRef
impl FishingHookRef
Trait Implementations§
§impl Clone for FishingHookRef
impl Clone for FishingHookRef
§fn clone(&self) -> FishingHookRef
fn clone(&self) -> FishingHookRef
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 FishingHookRef
§impl Debug for FishingHookRef
impl Debug for FishingHookRef
impl Eq for FishingHookRef
§impl Hash for FishingHookRef
impl Hash for FishingHookRef
§impl PartialEq for FishingHookRef
impl PartialEq for FishingHookRef
impl StructuralPartialEq for FishingHookRef
Auto Trait Implementations§
impl Freeze for FishingHookRef
impl RefUnwindSafe for FishingHookRef
impl Send for FishingHookRef
impl Sync for FishingHookRef
impl Unpin for FishingHookRef
impl UnsafeUnpin for FishingHookRef
impl UnwindSafe for FishingHookRef
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