public class ParticleTypeDustColorTransition extends Object
Class used to represent dust particle type that needs a starting color, transition color and a size.
It provides a non-reflective color method overloads
to construct ParticleType with selected colors and size.
All color methods does not validate parameters in any way.
ParticleType| Constructor and Description |
|---|
ParticleTypeDustColorTransition() |
| Modifier and Type | Method and Description |
|---|---|
ParticleType |
color(org.bukkit.Color color,
org.bukkit.Color transition,
double size)
Selects a color this particle should get
and to what color it should transition on fading away.
|
ParticleType |
color(float r,
float g,
float b,
float tr,
float tg,
float tb,
float size)
Selects a color this particle should get
and to what color it should transition on fading away.
|
ParticleType |
color(int r,
int g,
int b,
int tr,
int tg,
int tb,
double size)
Selects a color this particle should get
and to what color it should transition on fading away.
|
boolean |
isValid()
Checks if this particle is supported by this Spigot version.
|
public ParticleType color(org.bukkit.Color color, org.bukkit.Color transition, double size)
Selects a color this particle should get and to what color it should transition on fading away.
Parameters are not validated in any way.
color - a Color object representing
desired particle color.transition - a Color object representing
desired color on fade.size - size of a particle.ParticleType object with selected
colors and size.public ParticleType color(int r, int g, int b, int tr, int tg, int tb, double size)
Selects a color this particle should get and to what color it should transition on fading away.
Parameters are not validated in any way.
r - red color value that should be between 0 and 255.g - green color value that should be between 0 and 255.b - blue color value that should be between 0 and 255.tr - red fade color value that should be between 0 and 255.tg - green fade color value that should be between 0 and 255.tb - blue fade color value that should be between 0 and 255.size - size of a particle.ParticleType object with selected
colors and size.public ParticleType color(float r, float g, float b, float tr, float tg, float tb, float size)
Selects a color this particle should get and to what color it should transition on fading away.
Parameters are not validated in any way.
This method is overridden by dynamically generated subclasses.
r - red color value that should be between 0.0 and 1.0.g - green color value that should be between 0.0 and 1.0.b - blue color value that should be between 0.0 and 1.0.tr - red fade color value that should be between 0 and 255.tg - green fade color value that should be between 0 and 255.tb - blue fade color value that should be between 0 and 255.size - size of a particle.ParticleType object with selected
colors and size.public boolean isValid()
Checks if this particle is supported by this Spigot version.
This method is overridden by dynamically generated subclasses.
Copyright © 2022. All Rights Reserved.