Enum Class LawType

java.lang.Object
java.lang.Enum<LawType>
net.chen.legacyLand.nation.law.LawType
All Implemented Interfaces:
Serializable, Comparable<LawType>, Constable

public enum LawType extends Enum<LawType>
法令类型枚举
  • Enum Constant Details

    • TRADE_EMBARGO

      public static final LawType TRADE_EMBARGO
    • TRADE_TAX_MODIFIER

      public static final LawType TRADE_TAX_MODIFIER
    • IMPORT_BAN

      public static final LawType IMPORT_BAN
    • WAR_MOBILIZATION

      public static final LawType WAR_MOBILIZATION
    • CONSCRIPTION

      public static final LawType CONSCRIPTION
    • CURFEW

      public static final LawType CURFEW
    • AMNESTY

      public static final LawType AMNESTY
    • RESEARCH_BOOST

      public static final LawType RESEARCH_BOOST
  • Method Details

    • values

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