Package dev.jorel.commandapi.arguments
Enum Class CommandAPIArgumentType
- All Implemented Interfaces:
Serializable,Comparable<CommandAPIArgumentType>,Constable
An enum that represents the different arguments declared in the Command API
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe AdvancementArgumentThe ChatArgument (with Paper Adventure backend)The ChatComponentArgument (with Paper Adventure backend)The ChatColorArgument (with Paper Adventure backend)The AngleArgumentThe AxisArgumentThe BiomeArgumentThe BlockPredicateArgumentThe BlockStateArgumentThe ChatArgument (with BaseComponent backend)The ChatComponentArgument (with BaseComponent backend)The ChatColorArgumentThe CommandArgumentThe CustomArgumentThe DimensionArgumentThe EnchantmentArgumentThe EntitySelectorArgumentThe EntityTypeArgumentThe EnvironmentArgumentThe FloatRangeArgumentThe FunctionArgumentThe IntegerRangeArgumentThe ItemStackArgumentThe ItemStackPredicateArgumentThe ListArgumentThe ListTextArgumentThe LiteralArgumentThe LocationArgumentThe Location2dArgumentThe LootTableArgumentThe MapArgumentThe MathOperationArgumentThe MultiLiteralArgumentThe NamespacedKeyArgumentThe NBTCompoundArgumentThe ObjectiveArgumentThe ObjectiveCriteriaArgumentThe OfflinePlayerArgumentThe ParticleArgumentThe PlayerArgumentThe PotionEffectArgumentPrimitive argument BooleanArgumentPrimitive argument DoubleArgumentPrimitive argument F;patArgumentPrimitive argument GreedyStringArgumentPrimitive argument IntegerArgumentPrimitive argument LongArgumentPrimitive argument StringArgumentPrimitive argument TextArgumentThe RecipeArgumentThe RotationArgumentThe ScoreHolderArgumentThe ScoreboardSlotArgumentThe SoundArgumentThe TeamArgumentThe TimeArgumentThe UUIDArgument -
Method Summary
Modifier and TypeMethodDescriptionstatic CommandAPIArgumentTypefromInternal(String internal) Converts an internal name (e.g. minecraft:time) to a CommandAPIArgumentTypestatic CommandAPIArgumentTypeReturns the enum constant of this class with the specified name.static CommandAPIArgumentType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ADVANCEMENT
The AdvancementArgument -
ADVENTURE_CHAT
The ChatArgument (with Paper Adventure backend) -
ADVENTURE_CHATCOLOR
The ChatColorArgument (with Paper Adventure backend) -
ADVENTURE_CHAT_COMPONENT
The ChatComponentArgument (with Paper Adventure backend) -
ANGLE
The AngleArgument -
AXIS
The AxisArgument -
BIOME
The BiomeArgument -
BLOCK_PREDICATE
The BlockPredicateArgument -
BLOCKSTATE
The BlockStateArgument -
CHAT
The ChatArgument (with BaseComponent backend) -
CHAT_COMPONENT
The ChatComponentArgument (with BaseComponent backend) -
CHATCOLOR
The ChatColorArgument -
COMMAND
The CommandArgument -
CUSTOM
The CustomArgument -
DIMENSION
The DimensionArgument -
ENCHANTMENT
The EnchantmentArgument -
ENTITY_SELECTOR
The EntitySelectorArgument -
ENTITY_TYPE
The EntityTypeArgument -
ENVIRONMENT
The EnvironmentArgument -
FLOAT_RANGE
The FloatRangeArgument -
FUNCTION
The FunctionArgument -
INT_RANGE
The IntegerRangeArgument -
ITEMSTACK
The ItemStackArgument -
ITEMSTACK_PREDICATE
The ItemStackPredicateArgument -
LIST
The ListArgument -
LIST_TEXT
The ListTextArgument -
LITERAL
The LiteralArgument -
LOCATION
The LocationArgument -
LOCATION_2D
The Location2dArgument -
LOOT_TABLE
The LootTableArgument -
MAP
The MapArgument -
MATH_OPERATION
The MathOperationArgument -
MULTI_LITERAL
The MultiLiteralArgument -
NAMESPACED_KEY
The NamespacedKeyArgument -
NBT_COMPOUND
The NBTCompoundArgument -
OBJECTIVE
The ObjectiveArgument -
OBJECTIVE_CRITERIA
The ObjectiveCriteriaArgument -
OFFLINE_PLAYER
The OfflinePlayerArgument -
PARTICLE
The ParticleArgument -
PLAYER
The PlayerArgument -
POTION_EFFECT
The PotionEffectArgument -
PRIMITIVE_BOOLEAN
Primitive argument BooleanArgument -
PRIMITIVE_DOUBLE
Primitive argument DoubleArgument -
PRIMITIVE_FLOAT
Primitive argument F;patArgument -
PRIMITIVE_GREEDY_STRING
Primitive argument GreedyStringArgument -
PRIMITIVE_INTEGER
Primitive argument IntegerArgument -
PRIMITIVE_LONG
Primitive argument LongArgument -
PRIMITIVE_STRING
Primitive argument StringArgument -
PRIMITIVE_TEXT
Primitive argument TextArgument -
RECIPE
The RecipeArgument -
ROTATION
The RotationArgument -
SCORE_HOLDER
The ScoreHolderArgument -
SCOREBOARD_SLOT
The ScoreboardSlotArgument -
SOUND
The SoundArgument -
TEAM
The TeamArgument -
TIME
The TimeArgument -
UUID
The UUIDArgument
-
-
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
-
fromInternal
Converts an internal name (e.g. minecraft:time) to a CommandAPIArgumentType- Parameters:
internal- the internal name for this argument- Returns:
- the corresponding CommandAPIArgumentType for the given input
-