Enum Class UniversalDataTrait
java.lang.Object
java.lang.Enum<UniversalDataTrait>
com.xzavier0722.mc.plugin.slimefun4.storage.controller.attributes.UniversalDataTrait
- All Implemented Interfaces:
Serializable
,Comparable<UniversalDataTrait>
,Constable
这个枚举类用于声明
SlimefunUniversalData
的特征.
一个通用数据可以有单个或多个特征.
对于一个通用数据, 它默认拥有作为 k-v 容器的特征.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBLOCK 特征标明该通用数据属于SlimefunUniversalBlockData
INVENTORY 特征标明该通用数据拥有一个UniversalMenu
-
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
isReservedKey
(String key) static UniversalDataTrait
Returns the enum constant of this class with the specified name.static UniversalDataTrait[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
BLOCK
BLOCK 特征标明该通用数据属于SlimefunUniversalBlockData
-
INVENTORY
INVENTORY 特征标明该通用数据拥有一个UniversalMenu
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
isReservedKey
-