Enum Class FacilityType

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

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

  • Method Details

    • values

      public static FacilityType[] 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 FacilityType 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
    • fromNamespacedId

      public static FacilityType fromNamespacedId(String id)
    • coefficient

      public static double coefficient(int n)
      第 n 个同类设施的效果系数,n >= 1