pub struct CLevelParticles {
pub override_limiter: bool,
pub always_show: bool,
pub x: f64,
pub y: f64,
pub z: f64,
pub x_dist: f32,
pub y_dist: f32,
pub z_dist: f32,
pub max_speed: f32,
pub count: i32,
pub particle: ParticleData,
}Expand description
Sent to create particles on the client.
The client samples particle positions and velocities from the supplied distribution. A count of zero has Vanilla’s special single-particle velocity behavior.
Fields§
§override_limiter: bool§always_show: bool§x: f64§y: f64§z: f64§x_dist: f32§y_dist: f32§z_dist: f32§max_speed: f32§count: i32§particle: ParticleDataTrait Implementations§
Source§impl ClientPacket for CLevelParticles
impl ClientPacket for CLevelParticles
Source§fn get_id(&self, protocol: ConnectionProtocol) -> Option<i32>
fn get_id(&self, protocol: ConnectionProtocol) -> Option<i32>
Gets the ID of the packet for the given protocol.
Source§fn write_packet(
&self,
writer: &mut impl Write,
protocol: ConnectionProtocol,
) -> Result<(), PacketError>
fn write_packet( &self, writer: &mut impl Write, protocol: ConnectionProtocol, ) -> Result<(), PacketError>
Writes the packet to the given writer. Read more
Source§impl Clone for CLevelParticles
impl Clone for CLevelParticles
Source§fn clone(&self) -> CLevelParticles
fn clone(&self) -> CLevelParticles
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 moreSource§impl Debug for CLevelParticles
impl Debug for CLevelParticles
Auto Trait Implementations§
impl !RefUnwindSafe for CLevelParticles
impl !UnwindSafe for CLevelParticles
impl Freeze for CLevelParticles
impl Send for CLevelParticles
impl Sync for CLevelParticles
impl Unpin for CLevelParticles
impl UnsafeUnpin for CLevelParticles
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§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<>>