Struct ParticleGroup
pub struct ParticleGroup {
pub id: String,
pub blend: ParticleBlend,
pub particles: Vec<String>,
}Expand description
A render group a native mod registers: vanilla’s ParticleRenderType and the ParticleGroup
the engine keeps for it. The particles of a group are counted, admitted, ticked and removed
apart from every other group’s (each has vanilla’s own 16384-particle limit), and drawn after
the built-in particles, in registration order.
Fields§
§id: StringParticleRenderType.name: <namespace>:<path> in a namespace other than vanilla’s, like
mymod:glow.
blend: ParticleBlendHow the group’s particles blend, whatever their own sprites hold.
particles: Vec<String>The particle types that draw in this group, named as ParticleOptions::named names them
(mymod:spark). Each is a type a particles/<path>.json gives a sprite set, with or
without a register_particle_providers provider; a type another group lists already, or
no sprite set matches, is logged and left out.
Trait Implementations§
§impl Clone for ParticleGroup
impl Clone for ParticleGroup
§fn clone(&self) -> ParticleGroup
fn clone(&self) -> ParticleGroup
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more