Enum Class Particle.RandomizationType

java.lang.Object
java.lang.Enum<Particle.RandomizationType>
org.bukkit.Particle.RandomizationType
All Implemented Interfaces:
Serializable, Comparable<Particle.RandomizationType>, Constable
Enclosing class:
Particle

public static enum Particle.RandomizationType extends Enum<Particle.RandomizationType>
The randomization type for the particle, which controls how offset and speed are randomized.
  • Enum Constant Details

    • DEFAULT

      public static final Particle.RandomizationType DEFAULT
      The default randomization type, which multiplies each offset axis and each speed axis independently by its own Gaussian random value (similar to Random.nextGaussian() (mean 0, standard deviation 1).
    • ALTERNATIVE

      public static final Particle.RandomizationType ALTERNATIVE
      Multiplies each offset axis independently by its own uniform random value in the range [0, 1) similar to Random.nextDouble(). Speed is left unmodified.
    • ALTERNATIVE_WITH_SPEED

      public static final Particle.RandomizationType ALTERNATIVE_WITH_SPEED
      Multiplies each offset axis and each speed axis independently by its own uniform random value in the range [0, 1) similar to Random.nextDouble().
  • Method Details

    • values

      public static Particle.RandomizationType[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static Particle.RandomizationType valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null