CommandAPI 9.6.0
An API for the command UI introduced in Minecraft 1.13
dev.jorel.commandapi.arguments.CommandAPIArgumentType Enum Reference

An enum that represents the different arguments declared in the Command API. More...

Public Member Functions

 CommandAPIArgumentType (String internal)
 
 CommandAPIArgumentType (String[] internals)
 

Static Public Member Functions

static CommandAPIArgumentType fromInternal (String internal)
 Converts an internal name (e.g. More...
 

Public Attributes

 ADVANCEMENT =("api: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 =("minecraft:angle")
 The AngleArgument.
 
 AXIS =("minecraft:swizzle")
 The AxisArgument.
 
 BIOME =("api:biome")
 The BiomeArgument.
 
 BLOCK_PREDICATE =("minecraft:block_predicate")
 The BlockPredicateArgument.
 
 BLOCKSTATE =("minecraft:block_state")
 The BlockStateArgument.
 
 CHAT =("minecraft:message")
 The ChatArgument (with BaseComponent backend)
 
 CHAT_COMPONENT =("minecraft:component")
 The ChatComponentArgument (with BaseComponent backend)
 
 CHATCOLOR =("minecraft:color")
 The ChatColorArgument.
 
 COMMAND =("api:command")
 The CommandArgument.
 
 CUSTOM
 The CustomArgument.
 
 DIMENSION =("minecraft:dimension")
 The DimensionArgument.
 
 ENCHANTMENT =("minecraft:item_enchantment")
 The EnchantmentArgument.
 
 ENTITY_SELECTOR =("minecraft:entity")
 The EntitySelectorArgument.
 
 ENTITY_TYPE =("minecraft:entity_summon")
 The EntityTypeArgument.
 
 ENVIRONMENT =("api:environment")
 The EnvironmentArgument.
 
 FLOAT_RANGE =("minecraft:float_range")
 The FloatRangeArgument.
 
 FUNCTION =("minecraft:function")
 The FunctionArgument.
 
 INT_RANGE =("minecraft:int_range")
 The IntegerRangeArgument.
 
 ITEMSTACK =("minecraft:item_stack")
 The ItemStackArgument.
 
 ITEMSTACK_PREDICATE =("minecraft:item_predicate")
 The ItemStackPredicateArgument.
 
 LIST =("api:list")
 The ListArgument.
 
 LIST_TEXT =("api:list_text")
 The ListTextArgument.
 
 LITERAL
 The LiteralArgument.
 
 LOCATION =(new String[] { "minecraft:vec3", "minecraft:block_pos" })
 The LocationArgument.
 
 LOCATION_2D =(new String[] { "minecraft:vec2", "minecraft:column_pos" })
 The Location2dArgument.
 
 LOOT_TABLE =("api:loot_table")
 The LootTableArgument.
 
 MAP =("api:map")
 The MapArgument.
 
 MATH_OPERATION =("minecraft:operation")
 The MathOperationArgument.
 
 MULTI_LITERAL
 The MultiLiteralArgument.
 
 NAMESPACED_KEY =("minecraft:resource_location")
 The NamespacedKeyArgument.
 
 NBT_COMPOUND =("minecraft:nbt_compound_tag")
 The NBTCompoundArgument.
 
 OBJECTIVE =("minecraft:objective")
 The ObjectiveArgument.
 
 OBJECTIVE_CRITERIA =("minecraft:objective_criteria")
 The ObjectiveCriteriaArgument.
 
 OFFLINE_PLAYER =("api:offline_player")
 The OfflinePlayerArgument.
 
 PARTICLE =("minecraft:particle")
 The ParticleArgument.
 
 PLAYER =("minecraft:game_profile")
 The PlayerArgument.
 
 POTION_EFFECT =("minecraft:mob_effect")
 The PotionEffectArgument.
 
 PRIMITIVE_BOOLEAN =("brigadier:bool")
 Primitive argument BooleanArgument.
 
 PRIMITIVE_DOUBLE =("brigadier:double")
 Primitive argument DoubleArgument.
 
 PRIMITIVE_FLOAT =("brigadier:float")
 Primitive argument F;patArgument.
 
 PRIMITIVE_GREEDY_STRING =("api:greedy_string")
 Primitive argument GreedyStringArgument.
 
 PRIMITIVE_INTEGER =("brigadier:integer")
 Primitive argument IntegerArgument.
 
 PRIMITIVE_LONG =("brigadier:long")
 Primitive argument LongArgument.
 
 PRIMITIVE_STRING =("brigadier:string")
 Primitive argument StringArgument.
 
 PRIMITIVE_TEXT =("api:text")
 Primitive argument TextArgument.
 
 RECIPE =("api:recipe")
 The RecipeArgument.
 
 ROTATION =("minecraft:rotation")
 The RotationArgument.
 
 SCORE_HOLDER =("minecraft:score_holder")
 The ScoreHolderArgument.
 
 SCOREBOARD_SLOT =("minecraft:scoreboard_slot")
 The ScoreboardSlotArgument.
 
 SOUND =("api:sound")
 The SoundArgument.
 
 TEAM =("minecraft:team")
 The TeamArgument.
 
 TIME =("minecraft:time")
 The TimeArgument.
 
 UUID =("minecraft:uuid")
 The UUIDArgument.
 

Detailed Description

An enum that represents the different arguments declared in the Command API.

Member Function Documentation

◆ fromInternal()

static CommandAPIArgumentType dev.jorel.commandapi.arguments.CommandAPIArgumentType.fromInternal ( String  internal)
static

Converts an internal name (e.g.

minecraft:time) to a CommandAPIArgumentType

Parameters
internalthe internal name for this argument
Returns
the corresponding CommandAPIArgumentType for the given input