public static final class ParticleEffect.OrdinaryColor extends ParticleEffect.ParticleColor
ParticleEffect.SPELL_MOB, ParticleEffect.SPELL_MOB_AMBIENT and ParticleEffect.NOTE
This class is part of the ParticleEffect Library and follows the same usage conditions
| Constructor and Description |
|---|
OrdinaryColor(org.bukkit.Color color)
Construct a new ordinary color
|
OrdinaryColor(int red,
int green,
int blue)
Construct a new ordinary color
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBlue()
Returns the blue value of the RGB format
|
int |
getGreen()
Returns the green value of the RGB format
|
int |
getRed()
Returns the red value of the RGB format
|
float |
getValueX()
Returns the red value divided by 255
|
float |
getValueY()
Returns the green value divided by 255
|
float |
getValueZ()
Returns the blue value divided by 255
|
public OrdinaryColor(int red,
int green,
int blue)
throws java.lang.IllegalArgumentException
red - Red value of the RGB formatgreen - Green value of the RGB formatblue - Blue value of the RGB formatjava.lang.IllegalArgumentException - If one of the values is lower than 0 or higher than 255public OrdinaryColor(org.bukkit.Color color)
color - Bukkit colorpublic int getRed()
public int getGreen()
public int getBlue()
public float getValueX()
getValueX in class ParticleEffect.ParticleColorpublic float getValueY()
getValueY in class ParticleEffect.ParticleColorpublic float getValueZ()
getValueZ in class ParticleEffect.ParticleColor