Enum SpigotParticleVersion

java.lang.Object
java.lang.Enum<SpigotParticleVersion>
com.github.fierioziy.particlenativeapi.core.asm.utils.SpigotParticleVersion
All Implemented Interfaces:
Serializable, Comparable<SpigotParticleVersion>

public enum SpigotParticleVersion extends Enum<SpigotParticleVersion>

An enum used by ParticleNode class to store particle version.

It is used to represent a change in particle names (for ex. in field, enum or string) between Minecraft updates.

It also provides interface class associated with certain particle version for easier generation.

  • Enum Constant Details

  • Field Details

    • INITIAL_VERSION

      public static final SpigotParticleVersion INITIAL_VERSION
    • VERSION_COUNT

      public static final int VERSION_COUNT
  • Method Details

    • values

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

      public static SpigotParticleVersion valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null