public static final class ParticleEffect.NoteColor extends ParticleEffect.ParticleColor
ParticleEffect.NOTE effect
This class is part of the ParticleEffect Library and follows the same usage conditions
| Constructor and Description |
|---|
NoteColor(int note)
Construct a new note color
|
| Modifier and Type | Method and Description |
|---|---|
float |
getValueX()
Returns the note value divided by 24
|
float |
getValueY()
Returns zero because the offsetY value is unused
|
float |
getValueZ()
Returns zero because the offsetZ value is unused
|
public NoteColor(int note)
throws java.lang.IllegalArgumentException
note - Note id which determines colorjava.lang.IllegalArgumentException - If the note value is lower than 0 or higher than 24public float getValueX()
getValueX in class ParticleEffect.ParticleColorpublic float getValueY()
getValueY in class ParticleEffect.ParticleColorpublic float getValueZ()
getValueZ in class ParticleEffect.ParticleColor