Interface ColorableParticle

All Superinterfaces:
IParticle
All Known Implementing Classes:
ParticleDustColored, ParticleDustMulticolored, ParticleEffectColored, ParticleTrail

public interface ColorableParticle extends IParticle
  • Method Details

    • inherit

      ColorableParticle inherit(Particle particle)
      Specified by:
      inherit in interface IParticle
      Parameters:
      particle - particle for this object to copy data from
      Returns:
      this object
    • clone

      Specified by:
      clone in interface IParticle
    • setColor

      void setColor(@Nullable Color color)
      Parameters:
      color - color to set, null if you want random coloring
    • setColor

      void setColor(int red, int green, int blue)
    • getColor

      @Nullable Color getColor()
      nullable to allow for randomly colored particles without being complicated
      Returns:
      color this particle is using