public interface ParticleEffectBuilder
ParticleEffect
.Modifier and Type | Interface and Description |
---|---|
static interface |
ParticleEffectBuilder.Colorable
Represents a particle builder to create a
ParticleEffect.Colorable . |
static interface |
ParticleEffectBuilder.Material
Represents a particle builder to create a
ParticleEffect.Material . |
static interface |
ParticleEffectBuilder.Note
Represents a particle builder to create a
ParticleEffect.Note . |
static interface |
ParticleEffectBuilder.Resizable
Represents a particle builder to create a
ParticleEffect.Resizable . |
Modifier and Type | Method and Description |
---|---|
ParticleEffect |
build()
Builds an instance of a ParticleEffect.
|
ParticleEffectBuilder |
count(int count)
Sets the amount of particles of the particle effect.
|
ParticleEffectBuilder |
motion(com.flowpowered.math.vector.Vector3d motion)
Sets the motion vector of the particle effect.
|
ParticleEffectBuilder |
offset(com.flowpowered.math.vector.Vector3d offset)
Sets the offset vector of the particle effect.
|
ParticleEffectBuilder motion(com.flowpowered.math.vector.Vector3d motion)
The default motion vector is Vector3d.ZERO
.
motion
- The motion vectorParticleEffectBuilder offset(com.flowpowered.math.vector.Vector3d offset)
The default offset vector is Vector3d.ZERO
.
offset
- The offset vectorParticleEffectBuilder count(int count) throws IllegalArgumentException
The default count is 1.
count
- The count particlesIllegalArgumentException
- If the count is less than oneParticleEffect build()