Package dev.jorel.commandapi.arguments
Enum Class ArgumentSubType
- All Implemented Interfaces:
Serializable,Comparable<ArgumentSubType>,Constable
An enum that represents argument subtypes. For example, the
EntitySelectorArgument can be split into four arguments:
- One entity
- One player
- Many entities
- Many players
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA Biome.A Biome.Many entities.Many players.A single entity.A single player.A PotionEffectType.A PotionEffectType.Multiple scoreholders.A ScoreHolder.A Sound.A Sound. -
Method Summary
Modifier and TypeMethodDescriptionstatic ArgumentSubTypeReturns the enum constant of this class with the specified name.static ArgumentSubType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENTITYSELECTOR_ONE_ENTITY
A single entity. Returns aEntity -
ENTITYSELECTOR_ONE_PLAYER
A single player. Returns aPlayer -
ENTITYSELECTOR_MANY_ENTITIES
-
ENTITYSELECTOR_MANY_PLAYERS
-
BIOME_BIOME
A Biome. Returns aBiome -
BIOME_NAMESPACEDKEY
A Biome. Returns aNamespacedKey -
SOUND_SOUND
A Sound. Returns aSound -
SOUND_NAMESPACEDKEY
A Sound. Returns aNamespacedKey -
SCOREHOLDER_SINGLE
A ScoreHolder. Returns aString -
SCOREHOLDER_MULTIPLE
-
POTION_EFFECT_POTION_EFFECT
A PotionEffectType. Returns aPotionEffectType -
POTION_EFFECT_NAMESPACEDKEY
A PotionEffectType. Returns aNamespacedKey
-
-
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
-