public class ParticleTypeDust
extends java.lang.Object
Class used to represent dust particle type that needs a color and size.
It provides a non-reflective color method overloads
to construct ParticleType with selected color and size.
All color methods does not validate parameters in any way.
ParticleType| Constructor and Description |
|---|
ParticleTypeDust() |
| Modifier and Type | Method and Description |
|---|---|
ParticleType |
color(org.bukkit.Color color,
double size)
Selects a color this particle should get.
|
ParticleType |
color(org.bukkit.Color color,
float size)
Selects a color this particle should get.
|
ParticleType |
color(float r,
float g,
float b,
float size)
Selects a color this particle should get.
|
ParticleType |
color(int r,
int g,
int b,
double size)
Selects a color this particle should get.
|
ParticleType |
color(int r,
int g,
int b,
float size)
Selects a color this particle should get.
|
boolean |
isValid()
Checks if this particle is supported by this Spigot version.
|
public ParticleType color(org.bukkit.Color color, double size)
Selects a color this particle should get.
Parameters are not validated in any way.
color - a Color object representing
desired particle color.size - size of a particle.ParticleType object with selected
color and size.public ParticleType color(org.bukkit.Color color, float size)
Selects a color this particle should get.
Parameters are not validated in any way.
color - a Color object representing
desired particle color.size - size of a particle.ParticleType object with selected
color and size.public ParticleType color(int r, int g, int b, double size)
Selects a color this particle should get.
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.size - size of a particle.ParticleType object with selected
color and size.public ParticleType color(int r, int g, int b, float size)
Selects a color this particle should get.
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.size - size of a particle.ParticleType object with selected
color and size.public ParticleType color(float r, float g, float b, float size)
Selects a color this particle should get.
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.size - size of a particle.ParticleType object with selected
color and size.public boolean isValid()
Checks if this particle is supported by this Spigot version.
This method is overridden by dynamically generated subclasses.
Copyright © 2020. All Rights Reserved.