Package dev.jorel.commandapi.arguments
package dev.jorel.commandapi.arguments
Classes to be used as arguments for commands
-
ClassDescriptionAn argument that represents the Bukkit Advancement objectAn argument that represents chat with entity selectorsAn argument that represents raw JSON textAn argument that represents a yaw angle, measured in degrees with float number.Argument<T>The core abstract class for Command API argumentsAn enum that represents argument subtypes.This class represents suggestions for an argument.An argument that represents x, y and z axes as an EnumSet of AxisAn argument that represents the Bukkit Biome objectAn argument that represents the Bukkit Biome objectAn argument that represents a
Predicate<Block>An argument that represents the Bukkit BlockData objectAn argument that represents primitive Java booleansAn argument that represents chat with entity selectorsAn argument that represents the Bukkit ChatColor objectAn argument that represents raw JSON textAn enum that represents the different arguments declared in the Command APICustomArgument<T,B> An argument that represents any custom objectAn exception used to create command-related errors for the CustomArgumentA record which contains information which can be passed to the custom argument's parser.A FunctionalInterface that takes in aCustomArgument.CustomArgumentInfo, returns T and can throw aCustomArgument.CustomArgumentExceptionMessageBuilder is used to create error messages for invalid argument inputsAn argument that represents primitive Java doublesAn argument that represents the Bukkit Enchantment objectDeprecated, for removal: This API element is subject to removal in a future version.An argument that represents a selection of entitiesAn argument that represents many entitiesAn argument that represents many playersAn argument that represents a single entityAn argument that represents a single playerAn argument that represents the Bukkit EntityType objectDeprecated.UseWorldArgumentinstead.An argument that represents primitive Java floatsAn argument that represents a range of float valuesAn argument that represents Minecraft functions and tagsAn argument that represents arbitrary stringsAn interface allowing arguments to have built-in suggestion providers based on Minecraft namespaced keysAn interface indicating that an argument consumes all available charactersAn argument that represents primitive Java intsAn argument that represents a range of integer valuesAn interface representing that the argument can be previewed using Minecraft's chat preview feature.An argument that represents the Bukkit ItemStack objectAn argument that represents aPredicate<ItemStack>ListArgument<T>An argument that accepts a list of objectsA builder to create a ListArgumentAn argument that accepts a list of objectsAn argument that accepts a list of objectsA pseudo-argument representing a single literal stringAn argument that represents the BukkitLocationobject in x and z directionsAn argument that represents the BukkitLocationobjectAn enum representing block position or precise position for location argumentsAn argument that represents primitive Java longsAn argument that represents the Bukkit LootTable objectAn argument that represents Minecraft scoreboard math operationsAn argument that represents multiple LiteralArgumentsAn argument that represents a Minecraft resource location (or namespaced key) in the form namespace:key.NBTCompoundArgument<NBTContainer>An argument that represents an NBTContainer from the NBT APIAn argument that represents the name of a scoreboard objectiveAn argument that represents the name of an objective criteriaAn argument that represents the Bukkit Player objectAn argument that represents the Bukkit Particle objectAn argument that represents the Bukkit Player objectAn argument that represents the Bukkit PotionEffectType objectPreviewInfo<T>An argument that represents the Bukkit Recipe objectAn argument that represents rotation as pitch and yawAn interface declaring methods required to override argument suggestionsThis class represents safe suggestions.An argument that represents the Bukkit ScoreboardSlot objectAn argument that represents a scoreholder's name, or a collection of scoreholder namesAn argument that represents a collection of scoreholder namesDeprecated, for removal: This API element is subject to removal in a future version.An argument that represents a scoreholder's nameAn argument that represents the Bukkit Sound objectAn argument that represents the Bukkit Sound objectAn argument that represents a simple StringAn enum representing the different suggestion providers for arguments based on Minecraft namespaced keysThis class represents a branch in the suggestions of an argument.An argument that represents the name of a scoreboard TeamAn argument that represents text, encased in quotesAn argument that represents a duration of time in ticksAn argument that represents a UUIDAn argument that represents the Bukkit World object
EntitySelectorArgument.EntitySelectorArgument.OneEntity,EntitySelectorArgument.EntitySelectorArgument.OnePlayer,EntitySelectorArgument.EntitySelectorArgument.ManyEntitiesorEntitySelectorArgument.EntitySelectorArgument.ManyPlayers