pub struct FireworkExplosionData {
pub shape: VarInt,
pub colors: Vec<i32>,
pub fade_colors: Vec<i32>,
pub has_trail: bool,
pub has_twinkle: bool,
}Expand description
Defines a single explosion in a Firework Rocket.
Fields§
§shape: VarIntThe shape (Small Ball, Large Ball, Star, Creeper, Burst).
colors: Vec<i32>List of RGB integers for the initial explosion colors.
fade_colors: Vec<i32>List of RGB integers that the particles fade into.
has_trail: boolIf true, particles leave a trail behind them.
has_twinkle: boolIf true, particles crackle/flash after the explosion.
Trait Implementations§
Source§impl Clone for FireworkExplosionData
impl Clone for FireworkExplosionData
Source§fn clone(&self) -> FireworkExplosionData
fn clone(&self) -> FireworkExplosionData
Returns a duplicate of the value. Read more
1.0.0 · 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 FireworkExplosionData
impl Debug for FireworkExplosionData
Source§impl<'a> Decode<'a> for FireworkExplosionData
impl<'a> Decode<'a> for FireworkExplosionData
Source§impl Encode for FireworkExplosionData
impl Encode for FireworkExplosionData
Source§impl PartialEq for FireworkExplosionData
impl PartialEq for FireworkExplosionData
impl StructuralPartialEq for FireworkExplosionData
Auto Trait Implementations§
impl Freeze for FireworkExplosionData
impl RefUnwindSafe for FireworkExplosionData
impl Send for FireworkExplosionData
impl Sync for FireworkExplosionData
impl Unpin for FireworkExplosionData
impl UnwindSafe for FireworkExplosionData
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