public final class DustColorTransitionData extends DustData
DustData implementation is solely built
for the ParticleEffect.DUST_COLOR_TRANSITION
effect. It supports 2 colors and a custom size. The
resulting particle will show a color fade between
those 2 colors.DustData,
PropertyType.DUST,
ParticleEffect.DUST_COLOR_TRANSITION| Constructor and Description |
|---|
DustColorTransitionData(Color color,
Color fadeColor,
float size)
Creates a new
DustColorTransitionData instance. |
DustColorTransitionData(int red,
int green,
int blue,
int fadeRed,
int fadeGreen,
int fadeBlue,
float size)
Creates a new
DustColorTransitionData instance. |
| Modifier and Type | Method and Description |
|---|---|
float |
getFadeBlue()
Gets the blue value of the color the particle will
fade to.
|
float |
getFadeGreen()
Gets the green value of the color the particle will
fade to.
|
float |
getFadeRed()
Gets the red value of the color the particle will
fade to.
|
Object |
toNMSData()
Creates a new instance of the nms counterpart
of this class.
|
fromHSVHue, getBlue, getGreen, getRed, random, randomgetEffect, setEffectpublic DustColorTransitionData(Color color, Color fadeColor, float size)
DustColorTransitionData instance.color - the start color of the particle.fadeColor - the color the particle will fade to.size - the size of the particle.public DustColorTransitionData(int red,
int green,
int blue,
int fadeRed,
int fadeGreen,
int fadeBlue,
float size)
DustColorTransitionData instance.red - the red value of the start color.green - the green value of the start color.blue - the blue value of the start color.fadeRed - the red value of the second color.fadeGreen - the green value of the second color.fadeBlue - the blue value of the second color.size - the size of the particle.public float getFadeRed()
public float getFadeGreen()
public float getFadeBlue()
public Object toNMSData()
Please note that this class is not supported in any versions before 1.17 and could lead to errors if used in legacy versions.
Copyright © 2021. All rights reserved.