public final class NoteColor extends ParticleColor
ParticleColor class to support note colors.ParticleEffect.NOTE| Constructor and Description |
|---|
NoteColor(int note)
Initializes a new
ParticleData object. |
| Modifier and Type | Method and Description |
|---|---|
float |
getBlue()
Returns 0 because the offsetZ isn't used by the color of notes.
|
float |
getGreen()
Returns 0 because the offsetY isn't used by the color of notes.
|
float |
getRed()
Gets the red value of the color.
|
static NoteColor |
random()
Generates a random
NoteColor instance to support rainbow trails,
cloaks and other effects that can be constructed using the note particle. |
void |
setEffect(ParticleEffect effect)
Sets the
ParticleEffect. |
Object |
toNMSData()
Converts the current
ParticleData instance into nms data. |
getEffectpublic NoteColor(int note)
ParticleData object.note - the note that should be displayed.public void setEffect(ParticleEffect effect)
ParticleEffect.setEffect in class ParticleDataeffect - the ParticleEffect that should be displayed.public float getRed()
getRed in class ParticleColorpublic float getGreen()
getGreen in class ParticleColorpublic float getBlue()
getBlue in class ParticleColorpublic Object toNMSData()
ParticleData instance into nms data. If the current
minecraft version was released before 1.13 an int array should be returned. If the
version was released after 1.12 a nms "ParticleParam" has to be returned.toNMSData in class ParticleColorCopyright © 2021. All rights reserved.