API reference Obsidian.API.Client
ParticleProviderProperties class
How the Obsidian client moves and draws a mod's particle type, like a NeoForge mod's particle provider making a sprite particle. Register it with IClientRegistry.RegisterParticleProvider; without one, the type's particles behave like vanilla's base particle.
public sealed class ParticleProviderProperties
In Obsidian.API.Client.
Remarks
The particle's sprites are its definition's, assets/<ns>/particles/<name>.json, like vanilla's: {"textures": ["<ns>:<texture>", ...]}, from assets/<ns>/textures/particle/.
Constructors
public ParticleProviderProperties();Properties
AnimateSprite
public bool AnimateSprite { get; init; }Whether a particle shows its sprites in turn over its life, rather than one picked at random.
Friction
public float Friction { get; init; }What a particle's velocity is multiplied by each tick, like vanilla's particles' friction.
Gravity
public float Gravity { get; init; }How strongly particles fall, like vanilla's particles' gravity: 1 speeds their fall by 0.04 blocks per tick each tick, and a negative value makes them rise.
Lifetime
public int Lifetime { get; init; }How many ticks a particle lives; 0 for vanilla's base particle's random lifetime, from 4 to 40 ticks.
RandomizeVelocity
public bool RandomizeVelocity { get; init; }Whether a particle's velocity is randomised like vanilla's base particle's (a random direction with a slight upward push, around the velocity the server sent), rather than exactly the server's.
Scale
public float Scale { get; init; }How much bigger than vanilla's base particle (0.1 to 0.2 blocks) particles are drawn.