Interface ParticleTypeDust


public interface ParticleTypeDust

Class used to represent dust particle type that needs a color and size.

It provides a non-reflective color method overloads to construct ParticleType with selected color and size.

All color methods does not validate parameters in any way.

IMPORTANT NOTE: All methods annotated with Shared annotation caches and returns exactly one and the same instance with changed state between method calls. For an independent copy of returned instances, check detachCopy methods on them.

See Also:
  • Method Summary

    Modifier and Type
    Method
    Description
    color(float r, float g, float b, float size)
    Selects a color this particle should get.
    color(int r, int g, int b, double size)
    Selects a color this particle should get.
    color(int r, int g, int b, float size)
    Selects a color this particle should get.
    color(org.bukkit.Color color, double size)
    Selects a color this particle should get.
    color(org.bukkit.Color color, float size)
    Selects a color this particle should get.
    boolean
    Checks if this particle is supported by this Spigot version.
  • Method Details

    • color

      ParticleType color(org.bukkit.Color color, double size)

      Selects a color this particle should get.

      Parameters are not validated in any way.

      Parameters:
      color - a Color object representing desired particle color.
      size - size of a particle.
      Returns:
      a valid shared ParticleType object with selected color and size.
    • color

      ParticleType color(org.bukkit.Color color, float size)

      Selects a color this particle should get.

      Parameters are not validated in any way.

      Parameters:
      color - a Color object representing desired particle color.
      size - size of a particle.
      Returns:
      a valid shared ParticleType object with selected color and size.
    • color

      ParticleType color(int r, int g, int b, double size)

      Selects a color this particle should get.

      Parameters are not validated in any way.

      Parameters:
      r - red color value that should be between 0 and 255.
      g - green color value that should be between 0 and 255.
      b - blue color value that should be between 0 and 255.
      size - size of a particle.
      Returns:
      a valid shared ParticleType object with selected color and size.
    • color

      ParticleType color(int r, int g, int b, float size)

      Selects a color this particle should get.

      Parameters are not validated in any way.

      Parameters:
      r - red color value that should be between 0 and 255.
      g - green color value that should be between 0 and 255.
      b - blue color value that should be between 0 and 255.
      size - size of a particle.
      Returns:
      a valid shared ParticleType object with selected color and size.
    • color

      ParticleType color(float r, float g, float b, float size)

      Selects a color this particle should get.

      Parameters are not validated in any way.

      This method is overridden by dynamically generated subclasses.

      Parameters:
      r - red color value that should be between 0.0 and 1.0.
      g - green color value that should be between 0.0 and 1.0.
      b - blue color value that should be between 0.0 and 1.0.
      size - size of a particle.
      Returns:
      a valid shared ParticleType object with selected color and size.
    • isPresent

      boolean isPresent()

      Checks if this particle is supported by this Spigot version.

      This method is overridden by dynamically generated subclasses.

      Returns:
      true if this particle is supported by this Spigot version, false otherwise.