Enum Class Enchantment

java.lang.Object
java.lang.Enum<Enchantment>
ac.boar.anticheat.data.enchantment.Enchantment
All Implemented Interfaces:
Serializable, Comparable<Enchantment>, Constable

public enum Enchantment extends Enum<Enchantment>
  • Enum Constant Details

    • DEPTH_STRIDER

      public static final Enchantment DEPTH_STRIDER
    • RIPTIDE

      public static final Enchantment RIPTIDE
    • SOUL_SPEED

      public static final Enchantment SOUL_SPEED
    • SWIFT_SNEAK

      public static final Enchantment SWIFT_SNEAK
  • Method Details

    • values

      public static Enchantment[] 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 Enchantment 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
    • byId

      public static Enchantment byId(int id)