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