Enum Class Profession

java.lang.Object
java.lang.Enum<Profession>
net.chen.legacyLand.player.Profession
All Implemented Interfaces:
Serializable, Comparable<Profession>, Constable

public enum Profession extends Enum<Profession>
职业枚举
  • Enum Constant Details

    • WARRIOR

      public static final Profession WARRIOR
    • ARCHER

      public static final Profession ARCHER
    • KNIGHT

      public static final Profession KNIGHT
    • MINER

      public static final Profession MINER
    • FARMER

      public static final Profession FARMER
    • LUMBERJACK

      public static final Profession LUMBERJACK
    • BLACKSMITH

      public static final Profession BLACKSMITH
    • CARPENTER

      public static final Profession CARPENTER
    • ALCHEMIST

      public static final Profession ALCHEMIST
    • MERCHANT

      public static final Profession MERCHANT
    • TRADER

      public static final Profession TRADER
    • REPORTER

      public static final Profession REPORTER
  • Method Details

    • values

      public static Profession[] 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 Profession 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