public abstract class ParticleType<T extends ParticleEffect> extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
alwaysShow |
private ParticleEffect.Factory<T> |
parametersFactory |
Modifier | Constructor and Description |
---|---|
protected |
ParticleType(boolean alwaysShow,
ParticleEffect.Factory<T> parametersFactory) |
Modifier and Type | Method and Description |
---|---|
abstract com.mojang.serialization.Codec<T> |
getCodec() |
ParticleEffect.Factory<T> |
getParametersFactory() |
boolean |
shouldAlwaysSpawn() |
private final boolean alwaysShow
private final ParticleEffect.Factory<T extends ParticleEffect> parametersFactory
protected ParticleType(boolean alwaysShow, ParticleEffect.Factory<T> parametersFactory)
alwaysShow
- whether this particle type should appear regardless of particle mode@Environment(value=CLIENT) public boolean shouldAlwaysSpawn()
public ParticleEffect.Factory<T> getParametersFactory()
public abstract com.mojang.serialization.Codec<T> getCodec()