particleEffect

@Contract(value = "_, _ -> new", pure = true)
inline fun <B : Base<B>, T : Scoped<B>> particleEffect(type: T, builder: B.() -> Unit): ParticleEffect
@Contract(value = "_, _ -> new", pure = true)
inline fun <B : Base<B>, T : Scoped<B>> particleEffect(type: RegistryReference<T>, builder: B.() -> Unit): ParticleEffect

Creates a new particle effect with the given type and the result of applying the given builder.

Return

a new particle effect

Parameters

B

the builder type

T

the particle type

type

the type

builder

the builder to apply