Class ParticleColor

java.lang.Object
xyz.xenondevs.particle.data.ParticleData
xyz.xenondevs.particle.data.color.ParticleColor
Direct Known Subclasses:
NoteColor, RegularColor

public abstract class ParticleColor extends ParticleData
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 Details

    • toNMSData

      public abstract Object toNMSData()
      Converts the current ParticleData instance 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:
      toNMSData in class ParticleData
      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.