Class ParticleColor
java.lang.Object
xyz.xenondevs.particle.data.ParticleData
xyz.xenondevs.particle.data.color.ParticleColor
- Direct Known Subclasses:
NoteColor,RegularColor
The
ParticleColor class is used to store the rgb values of colors and
convert them into the corresponding nms objects.- Since:
- 10.06.2019
- Author:
- ByteZ
- See Also:
-
Method Summary
Methods inherited from class xyz.xenondevs.particle.data.ParticleData
getEffect, setEffect
-
Method Details
-
toNMSData
Converts the currentParticleDatainstance into nms data. If the current minecraft version was released before 1.13 an int array should be returned. If the version was released after 1.12 a nms "ParticleParam" has to be returned.- Specified by:
toNMSDatain classParticleData- Returns:
- the nms data.
-
getRed
public float getRed()Gets the red value of the color.- Returns:
- the red value.
-
getGreen
public float getGreen()Gets green red value of the color.- Returns:
- the green value.
-
getBlue
public float getBlue()Gets the blue value of the color.- Returns:
- the blue value.
-