java.lang.Object
java.lang.Enum<UniversalDataTrait>
com.xzavier0722.mc.plugin.slimefun4.storage.controller.attributes.UniversalDataTrait
All Implemented Interfaces:
Serializable, Comparable<UniversalDataTrait>, Constable

public enum UniversalDataTrait extends Enum<UniversalDataTrait>
这个枚举类用于声明 SlimefunUniversalData 的特征. 一个通用数据可以有单个或多个特征.

对于一个通用数据, 它默认拥有作为 k-v 容器的特征.

See Also:
  • Enum Constant Details

  • Method Details

    • values

      public static UniversalDataTrait[] 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 UniversalDataTrait 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
    • isReservedKey

      public static boolean isReservedKey(String key)