pub enum Particle {
Show 111 variants
AngryVillager,
Block(BlockParticle),
BlockMarker(BlockParticle),
Bubble,
Cloud,
Crit,
DamageIndicator,
DragonBreath,
DrippingLava,
FallingLava,
LandingLava,
DrippingWater,
FallingWater,
Dust(DustParticle),
DustColorTransition(DustColorTransitionParticle),
Effect,
ElderGuardian,
EnchantedHit,
Enchant,
EndRod,
EntityEffect,
ExplosionEmitter,
Explosion,
Gust,
SmallGust,
GustEmitterLarge,
GustEmitterSmall,
SonicBoom,
FallingDust(BlockParticle),
Firework,
Fishing,
Flame,
Infested,
CherryLeaves,
SculkSoul,
SculkCharge(SculkChargeParticle),
SculkChargePop,
SoulFireFlame,
Soul,
Flash,
HappyVillager,
Composter,
Heart,
InstantEffect,
Item(ItemParticle),
Vibration(VibrationParticle),
Trail,
ItemSlime,
ItemCobweb,
ItemSnowball,
LargeSmoke,
Lava,
Mycelium,
Note,
Poof,
Portal,
Rain,
Smoke,
WhiteSmoke,
Sneeze,
Spit,
SquidInk,
SweepAttack,
TotemOfUndying,
Underwater,
Splash,
Witch,
BubblePop,
CurrentDown,
BubbleColumnUp,
Nautilus,
Dolphin,
CampfireCosySmoke,
CampfireSignalSmoke,
DrippingHoney,
FallingHoney,
LandingHoney,
FallingNectar,
FallingSporeBlossom,
Ash,
CrimsonSpore,
WarpedSpore,
SporeBlossomAir,
DrippingObsidianTear,
FallingObsidianTear,
LandingObsidianTear,
ReversePortal,
WhiteAsh,
SmallFlame,
Snowflake,
DrippingDripstoneLava,
FallingDripstoneLava,
DrippingDripstoneWater,
FallingDripstoneWater,
GlowSquidInk,
Glow,
WaxOn,
WaxOff,
ElectricSpark,
Scrape,
Shriek(ShriekParticle),
EggCrack,
DustPlume,
TrialSpawnerDetection,
TrialSpawnerDetectionOminous,
VaultConnection,
DustPillar,
OminousSpawning,
RaidOmen,
TrialOmen,
BlockCrumble,
}
Expand description
A ParticleKind
with data potentially attached to it.
Variants§
AngryVillager
Block(BlockParticle)
BlockMarker(BlockParticle)
Bubble
Cloud
Crit
DamageIndicator
DragonBreath
DrippingLava
FallingLava
LandingLava
DrippingWater
FallingWater
Dust(DustParticle)
DustColorTransition(DustColorTransitionParticle)
Effect
ElderGuardian
EnchantedHit
Enchant
EndRod
EntityEffect
ExplosionEmitter
Explosion
Gust
SmallGust
GustEmitterLarge
GustEmitterSmall
SonicBoom
FallingDust(BlockParticle)
Firework
Fishing
Flame
Infested
CherryLeaves
SculkSoul
SculkCharge(SculkChargeParticle)
SculkChargePop
SoulFireFlame
Soul
Flash
HappyVillager
Composter
Heart
InstantEffect
Item(ItemParticle)
Vibration(VibrationParticle)
Trail
ItemSlime
ItemCobweb
ItemSnowball
LargeSmoke
Lava
Mycelium
Note
Poof
Portal
Rain
Smoke
WhiteSmoke
Sneeze
Spit
SquidInk
SweepAttack
TotemOfUndying
Underwater
Splash
Witch
BubblePop
CurrentDown
BubbleColumnUp
Nautilus
Dolphin
CampfireCosySmoke
CampfireSignalSmoke
DrippingHoney
FallingHoney
LandingHoney
FallingNectar
FallingSporeBlossom
Ash
CrimsonSpore
WarpedSpore
SporeBlossomAir
DrippingObsidianTear
FallingObsidianTear
LandingObsidianTear
ReversePortal
WhiteAsh
SmallFlame
Snowflake
DrippingDripstoneLava
FallingDripstoneLava
DrippingDripstoneWater
FallingDripstoneWater
GlowSquidInk
Glow
WaxOn
WaxOff
ElectricSpark
Scrape
Shriek(ShriekParticle)
EggCrack
DustPlume
TrialSpawnerDetection
TrialSpawnerDetectionOminous
VaultConnection
DustPillar
OminousSpawning
RaidOmen
TrialOmen
BlockCrumble
Implementations§
Source§impl Particle
impl Particle
pub fn read_from_id( buf: &mut Cursor<&[u8]>, id: u32, ) -> Result<Self, BufReadError>
Trait Implementations§
Source§impl From<ParticleKind> for Particle
impl From<ParticleKind> for Particle
Source§fn from(kind: ParticleKind) -> Self
fn from(kind: ParticleKind) -> Self
Convert a particle kind into particle data. If the particle has data attached (like block particles), then it’s set to the default.
Source§impl McBufReadable for Particle
impl McBufReadable for Particle
Auto Trait Implementations§
impl Freeze for Particle
impl !RefUnwindSafe for Particle
impl Send for Particle
impl Sync for Particle
impl Unpin for Particle
impl !UnwindSafe for Particle
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<C> Bundle for Cwhere
C: Component,
impl<C> Bundle for Cwhere
C: Component,
fn component_ids( components: &mut Components, storages: &mut Storages, ids: &mut impl FnMut(ComponentId), )
unsafe fn from_components<T, F>(ctx: &mut T, func: &mut F) -> C
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait>
(where Trait: Downcast
) to Box<dyn Any>
. Box<dyn Any>
can
then be further downcast
into Box<ConcreteType>
where ConcreteType
implements Trait
.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait>
(where Trait: Downcast
) to Rc<Any>
. Rc<Any>
can then be
further downcast
into Rc<ConcreteType>
where ConcreteType
implements Trait
.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &Any
’s vtable from &Trait
’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait
(where Trait: Downcast
) to &Any
. This is needed since Rust cannot
generate &mut Any
’s vtable from &mut Trait
’s.§impl<T> DowncastSync for T
impl<T> DowncastSync for T
§impl<C> DynamicBundle for Cwhere
C: Component,
impl<C> DynamicBundle for Cwhere
C: Component,
fn get_components(self, func: &mut impl FnMut(StorageType, OwningPtr<'_>))
§impl<T> FromWorld for Twhere
T: Default,
impl<T> FromWorld for Twhere
T: Default,
§fn from_world(_world: &mut World) -> T
fn from_world(_world: &mut World) -> T
Creates
Self
using data from the given [World
].