pub(super) struct ThrowParams {
pub sound: SoundEventRef,
pub sound_source: SoundSource,
pub sound_volume: f32,
pub y_offset: f32,
pub power: f32,
pub uncertainty: f32,
}Expand description
The per-item constants of vanilla’s throw use.
Fields§
§sound: SoundEventRefSound played before the projectile spawns.
sound_source: SoundSourceCategory that sound is played under.
sound_volume: f32Volume that sound is played at.
y_offset: f32spawnProjectileFromRotation’s yOffset, in degrees.
power: f32The item’s PROJECTILE_SHOOT_POWER.
uncertainty: f32spawnProjectileFromRotation uncertainty.
Auto Trait Implementations§
impl Freeze for ThrowParams
impl RefUnwindSafe for ThrowParams
impl Send for ThrowParams
impl Sync for ThrowParams
impl Unpin for ThrowParams
impl UnsafeUnpin for ThrowParams
impl UnwindSafe for ThrowParams
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<>>