public class DustData extends RegularColor
DustColorTransitionData for more
information. The size of these particles has to
lie between 0-4. Every size above 4 is displayed
as size 4.
Please note that the size also influences the display time of the particle.
PropertyType.DUST,
RegularColor,
ParticleEffect.REDSTONE,
ParticleEffect.DUST_COLOR_TRANSITION| Constructor and Description |
|---|
DustData(Color color,
float size)
Creates a new
DustData instance. |
DustData(int red,
int green,
int blue,
float size)
Creates a new
DustData instance. |
| Modifier and Type | Method and Description |
|---|---|
float |
getSize()
Gets the size of the particle.
|
Object |
toNMSData()
Converts the underlying
DustData into it's
nms counterparts. |
fromHSVHue, getBlue, getGreen, getRed, random, randomgetEffect, setEffectpublic DustData(Color color, float size)
DustData instance.color - the color of the dust particle.size - the size of the particle.public DustData(int red,
int green,
int blue,
float size)
DustData instance.red - the red value of the color.green - the green value of the color.blue - the blue value of the color.size - the size of the particle.public float getSize()
public Object toNMSData()
DustData into it's
nms counterparts. The return type is dependent on
the value of the ParticleData.getEffect(). If the getter
returns neither ParticleEffect.REDSTONE or
ParticleEffect.DUST_COLOR_TRANSITION,
then null is returned.
Please note that this class is not supported in any versions before 1.13 and could lead to errors if used in legacy versions.
toNMSData in class RegularColorDustDataCopyright © 2021. All rights reserved.