public class BiomeParticleConfig extends Object
Modifier and Type | Field and Description |
---|---|
private float |
chance |
private DefaultParticleType |
type |
private Function<Random,Double> |
velocityXFactory |
private Function<Random,Double> |
velocityYFactory |
private Function<Random,Double> |
velocityZFactory |
Constructor and Description |
---|
BiomeParticleConfig(DefaultParticleType type,
float chance,
Function<Random,Double> xFactory,
Function<Random,Double> yFactory,
Function<Random,Double> zFactory) |
Modifier and Type | Method and Description |
---|---|
double |
generateVelocityX(Random random) |
double |
generateVelocityY(Random random) |
double |
generateVelocityZ(Random random) |
DefaultParticleType |
getParticleType() |
boolean |
shouldAddParticle(Random random) |
private final DefaultParticleType type
private final float chance
@Environment(value=CLIENT) public DefaultParticleType getParticleType()
@Environment(value=CLIENT) public boolean shouldAddParticle(Random random)
@Environment(value=CLIENT) public double generateVelocityX(Random random)
@Environment(value=CLIENT) public double generateVelocityY(Random random)
@Environment(value=CLIENT) public double generateVelocityZ(Random random)