Enum Class NationRole

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

public enum NationRole extends Enum<NationRole>
国家成员角色
  • Enum Constant Details

    • KINGDOM

      public static final NationRole KINGDOM
    • CHANCELLOR

      public static final NationRole CHANCELLOR
    • ATTORNEY_GENERAL

      public static final NationRole ATTORNEY_GENERAL
    • MINISTER_OF_JUSTICE

      public static final NationRole MINISTER_OF_JUSTICE
    • MINISTER_OF_DEFENSE

      public static final NationRole MINISTER_OF_DEFENSE
    • GOVERNOR

      public static final NationRole GOVERNOR
    • FINANCE_OFFICER

      public static final NationRole FINANCE_OFFICER
    • JUDICIAL_OFFICER

      public static final NationRole JUDICIAL_OFFICER
    • MILITARY_SUPPLY_OFFICER

      public static final NationRole MILITARY_SUPPLY_OFFICER
    • PARLIAMENT_MEMBER

      public static final NationRole PARLIAMENT_MEMBER
    • FUHRER

      public static final NationRole FUHRER
    • MILITARY_COMMANDER

      public static final NationRole MILITARY_COMMANDER
    • PROPAGANDA_MINISTER

      public static final NationRole PROPAGANDA_MINISTER
    • GENERAL_SECRETARY

      public static final NationRole GENERAL_SECRETARY
    • PLANNING_COMMISSIONER

      public static final NationRole PLANNING_COMMISSIONER
    • PEOPLES_REPRESENTATIVE

      public static final NationRole PEOPLES_REPRESENTATIVE
    • CITIZEN

      public static final NationRole CITIZEN
  • Method Details

    • values

      public static NationRole[] 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 NationRole 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
    • hasPermission

      public boolean hasPermission(NationPermission permission)
    • isLeader

      public boolean isLeader()