pub enum ParticleSpec {
Show 62 variants
AmbientEntityEffect,
AngryVillager,
Barrier,
Block(BlockParticleData),
Bubble,
Cloud,
Crit,
DamageIndicator,
DragonBreath,
DrippingLava,
FallingLava,
LandingLava,
DrippingWater,
FallingWater,
Dust(DustParticleData),
Effect,
ElderGuardian,
EnchantedHit,
Enchant,
EndRod,
EntityEffect,
ExposionEmitter,
Explosion,
FallingDust(DustParticleData),
Firework,
Fishing,
Flame,
Flash,
HappyVillager,
Composter,
Heart,
InstantEffect,
Item(Slot),
ItemSlime,
ItemSnowball,
LargeSmoke,
Lava,
Mycelium,
Note,
Poof,
Portal,
Rain,
Smoke,
Sneeze,
Spit,
SquidInk,
SweepAttack,
TotemOfUndying,
Underwater,
Splash,
Witch,
BubblePop,
CurrentDown,
BubbleColumnUp,
Nautilus,
Dolphin,
CampfireCosySmoke,
CampfireSignalSmoke,
DrippingHoney,
FallingHoney,
LandingHoney,
FallingNectar,
}
Variants§
AmbientEntityEffect
AngryVillager
Barrier
Block(BlockParticleData)
Bubble
Cloud
Crit
DamageIndicator
DragonBreath
DrippingLava
FallingLava
LandingLava
DrippingWater
FallingWater
Dust(DustParticleData)
Effect
ElderGuardian
EnchantedHit
Enchant
EndRod
EntityEffect
ExposionEmitter
Explosion
FallingDust(DustParticleData)
Firework
Fishing
Flame
Flash
HappyVillager
Composter
Heart
InstantEffect
Item(Slot)
ItemSlime
ItemSnowball
LargeSmoke
Lava
Mycelium
Note
Poof
Portal
Rain
Smoke
Sneeze
Spit
SquidInk
SweepAttack
TotemOfUndying
Underwater
Splash
Witch
BubblePop
CurrentDown
BubbleColumnUp
Nautilus
Dolphin
CampfireCosySmoke
CampfireSignalSmoke
DrippingHoney
FallingHoney
LandingHoney
FallingNectar
Implementations§
Source§impl ParticleSpec
impl ParticleSpec
pub const fn variant_count() -> usize
pub fn deserialize_with_id<'a>( id: VarInt, data: &'a [u8], ) -> DeserializeResult<'a, Self>
pub fn name(&self) -> &str
pub fn id(&self) -> VarInt
pub fn serialize_body<S: Serializer>(&self, to: &mut S) -> SerializeResult
Trait Implementations§
Source§impl Clone for ParticleSpec
impl Clone for ParticleSpec
Source§fn clone(&self) -> ParticleSpec
fn clone(&self) -> ParticleSpec
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 ParticleSpec
impl Debug for ParticleSpec
Source§impl Deserialize for ParticleSpec
impl Deserialize for ParticleSpec
fn mc_deserialize(data: &[u8]) -> DeserializeResult<'_, Self>
Source§impl PartialEq for ParticleSpec
impl PartialEq for ParticleSpec
Source§impl Serialize for ParticleSpec
impl Serialize for ParticleSpec
fn mc_serialize<S: Serializer>(&self, to: &mut S) -> SerializeResult
impl StructuralPartialEq for ParticleSpec
Auto Trait Implementations§
impl Freeze for ParticleSpec
impl RefUnwindSafe for ParticleSpec
impl Send for ParticleSpec
impl Sync for ParticleSpec
impl Unpin for ParticleSpec
impl UnwindSafe for ParticleSpec
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