Package cn.nukkit.api
Enum Class API.Definition
- All Implemented Interfaces:
Serializable
,Comparable<API.Definition>
,Constable
- Enclosing class:
- API
Enum constant for API definition. Indicates which client platform this API element supports.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIntended for features should only be used by Nukkit itself.Intended for features only available on one or several client platforms.Intended for features implemented in all client platforms. -
Method Summary
Modifier and TypeMethodDescriptionstatic API.Definition
Returns the enum constant of this class with the specified name.static API.Definition[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INTERNAL
Intended for features should only be used by Nukkit itself. Should not be used in production. -
PLATFORM_NATIVE
Intended for features only available on one or several client platforms.By using
PLATFORM_NATIVE
features, program will lose some cross-platform features provided. Might not available in some client platforms. Read the documents carefully before using this API element. -
UNIVERSAL
Intended for features implemented in all client platforms.Preferred to use for production use, but sometimes be lack of platform-native features.
-
-
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
-