Package cloud.commandframework.bukkit
Enum CloudBukkitCapabilities
- All Implemented Interfaces:
cloud.commandframework.CloudCapability,Serializable,Comparable<CloudBukkitCapabilities>
public enum CloudBukkitCapabilities
extends Enum<CloudBukkitCapabilities>
implements cloud.commandframework.CloudCapability
Capabilities for the Bukkit module
-
Nested Class Summary
Nested classes/interfaces inherited from interface cloud.commandframework.CloudCapability
cloud.commandframework.CloudCapability.CloudCapabilityMissingException, cloud.commandframework.CloudCapability.StandardCapabilities -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionWhether asynchronous command completions are supported through the Paper API.Whether Brigadier is present in the current environment.Whether support for Brigadier command registration is available through Commodore (BukkitCommandManager.registerBrigadier()).Whether support for native Brigadier command registration is available through the Paper API (PaperCommandManager#registerBrigadierfromcloud-paper). -
Method Summary
Modifier and TypeMethodDescription@NonNull StringtoString()static CloudBukkitCapabilitiesReturns the enum constant of this type with the specified name.static CloudBukkitCapabilities[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
BRIGADIER
Whether Brigadier is present in the current environment. Certain parser types require this, and are able to work even if a capability for Brigadier command registration is not present (as long as this capability is present). -
NATIVE_BRIGADIER
Whether support for native Brigadier command registration is available through the Paper API (PaperCommandManager#registerBrigadierfromcloud-paper). -
COMMODORE_BRIGADIER
Whether support for Brigadier command registration is available through Commodore (BukkitCommandManager.registerBrigadier()).Note: As of 1.19.2, Commodore simply delegates to the same Paper API as cloud is capable of using directly, doing nothing on non-Paper Bukkit implementations. As such, this capability will not be present in 1.19.2+ environments. Users should prefer using
PaperCommandManagerfromcloud-paperand checking forNATIVE_BRIGADIER. -
ASYNCHRONOUS_COMPLETION
Whether asynchronous command completions are supported through the Paper API.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
toString
- Specified by:
toStringin interfacecloud.commandframework.CloudCapability- Overrides:
toStringin classEnum<CloudBukkitCapabilities>
-