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 booleanequals(java.lang.Object other)intgetNote()Returns the note valuefloatgetValueX()Returns the note value divided by 24floatgetValueY()Returns zero because the offsetY value is unusedfloatgetValueZ()Returns zero because the offsetZ value is unusedinthashCode()
-
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:
getValueXin classParticleColor- Returns:
- The offsetX value
-
getValueY
public float getValueY()Returns zero because the offsetY value is unused- Specified by:
getValueYin classParticleColor- Returns:
- zero
-
getValueZ
public float getValueZ()Returns zero because the offsetZ value is unused- Specified by:
getValueZin classParticleColor- Returns:
- zero
-
equals
public boolean equals(java.lang.Object other)- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCodein classjava.lang.Object
-