pub struct FishingHookState {
out_of_water_time: i32,
life: i32,
nibble: i32,
time_until_lured: i32,
time_until_hooked: i32,
fish_angle: f32,
open_water: bool,
bobber_state: BobberState,
hooked_entity: Option<SharedEntity>,
luck: i32,
lure_speed: i32,
}Expand description
This struct holds entity specific state information per fishing hook entity.
Fields§
§out_of_water_time: i32§life: i32§nibble: i32§time_until_lured: i32§time_until_hooked: i32§fish_angle: f32§open_water: bool§bobber_state: BobberStateEquivalent to Java’s currentState
hooked_entity: Option<SharedEntity>§luck: i32§lure_speed: i32Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for FishingHookState
impl !UnwindSafe for FishingHookState
impl Freeze for FishingHookState
impl Send for FishingHookState
impl Sync for FishingHookState
impl Unpin for FishingHookState
impl UnsafeUnpin for FishingHookState
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
fn instrument(self, span: Span) -> Instrumented<Self> ⓘ
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreWraps this value in an
Arc<SyncMutex<>>