Class NoteColor
java.lang.Object
dev.esophose.playerparticles.particles.data.ParticleColor
dev.esophose.playerparticles.particles.data.NoteColor
public final class NoteColor extends ParticleColor
Represents the color for the
ParticleEffect.NOTE
effect
This class is part of the ParticleEffect Library and follows the same usage conditions
- Since:
- 1.7
-
Field Summary
-
Constructor Summary
Constructors Constructor Description NoteColor(int note)
Construct a new note color -
Method Summary
Modifier and Type Method Description boolean
equals(java.lang.Object other)
int
getNote()
Returns the note valuefloat
getValueX()
Returns the note value divided by 24float
getValueY()
Returns zero because the offsetY value is unusedfloat
getValueZ()
Returns zero because the offsetZ value is unusedint
hashCode()
-
Field Details
-
Constructor Details
-
NoteColor
public NoteColor(int note) throws java.lang.IllegalArgumentExceptionConstruct a new note color- Parameters:
note
- Note id which determines color- Throws:
java.lang.IllegalArgumentException
- If the note value is lower than 0 or higher than 24
-
-
Method Details
-
getNote
public int getNote()Returns the note value- Returns:
- The note value
-
getValueX
public float getValueX()Returns the note value divided by 24- Specified by:
getValueX
in classParticleColor
- Returns:
- The offsetX value
-
getValueY
public float getValueY()Returns zero because the offsetY value is unused- Specified by:
getValueY
in classParticleColor
- Returns:
- zero
-
getValueZ
public float getValueZ()Returns zero because the offsetZ value is unused- Specified by:
getValueZ
in classParticleColor
- Returns:
- zero
-
equals
public boolean equals(java.lang.Object other)- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-