public static interface ParticleEffectBuilder.Resizable extends ParticleEffectBuilder
ParticleEffect.Resizable
.ParticleEffectBuilder.Colorable, ParticleEffectBuilder.Material, ParticleEffectBuilder.Note, ParticleEffectBuilder.Resizable
Modifier and Type | Method and Description |
---|---|
ParticleEffect.Resizable |
build()
Builds an instance of a ParticleEffect.
|
ParticleEffectBuilder.Resizable |
count(int count)
Sets the amount of particles of the particle effect.
|
ParticleEffectBuilder.Resizable |
motion(com.flowpowered.math.vector.Vector3d motion)
Sets the motion vector of the particle effect.
|
ParticleEffectBuilder.Resizable |
offset(com.flowpowered.math.vector.Vector3d offset)
Sets the offset vector of the particle effect.
|
ParticleEffectBuilder.Resizable |
size(float size)
Sets the size of the particle effect.
|
ParticleEffectBuilder.Resizable size(float size)
The default size is retrieved from the resizable particle type,
by using ParticleType.Resizable.getDefaultSize()
.
size
- The sizeParticleEffectBuilder.Resizable motion(com.flowpowered.math.vector.Vector3d motion)
ParticleEffectBuilder
The default motion vector is Vector3d.ZERO
.
motion
in interface ParticleEffectBuilder
motion
- The motion vectorParticleEffectBuilder.Resizable offset(com.flowpowered.math.vector.Vector3d offset)
ParticleEffectBuilder
The default offset vector is Vector3d.ZERO
.
offset
in interface ParticleEffectBuilder
offset
- The offset vectorParticleEffectBuilder.Resizable count(int count)
ParticleEffectBuilder
The default count is 1.
count
in interface ParticleEffectBuilder
count
- The count particlesParticleEffect.Resizable build()
ParticleEffectBuilder
build
in interface ParticleEffectBuilder