ParticleDefinition class
A particle type a plugin registered with IPluginRegistry.RegisterParticle, like a NeoForge mod's SimpleParticleType: a particle without options, sent as it is with ILevel.SpawnParticles.
public sealed class ParticleDefinition : ParticleData
In Obsidian.API.
Remarks
The server owns the definition: it keeps its instance, identifier and id until the server stops, even when the plugin reloads or unloads. Clients draw it with the client mod's sprites (assets/<namespace>/particles/<name>.json).
Properties
Id
public int Id { get; }The particle type's id in the particle type registry. Vanilla's come first; plugins' follow, in the order they were first registered.
Identifier
public string Identifier { get; }The particle type's identifier, like myplugin:spark.
ParticleType
public override ParticleType ParticleType { get; }The particle type's id as a ParticleType, which names only vanilla's.
Methods
public override string ToString();