Class DustData

Direct Known Subclasses:
DustColorTransitionData

public class DustData extends RegularColor
The DustData class holds information on the colors and size of various dust particles. The standard implementation below supports a custom color and size. If you're looking for Transitioning colors check out 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.

Author:
ByteZ
See Also:
  • Constructor Details

    • DustData

      public DustData(Color color, float size)
      Creates a new DustData instance.
      Parameters:
      color - the color of the dust particle.
      size - the size of the particle.
    • DustData

      public DustData(int red, int green, int blue, float size)
      Creates a new DustData instance.
      Parameters:
      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.
  • Method Details