CommandAPI 9.6.0
An API for the command UI introduced in Minecraft 1.13
|
Classes that are wrappers for various vanilla-related command features. More...
Classes | |
class | FloatRange |
A class representing a range of floats. More... | |
class | FunctionWrapper |
A wrapper class for Minecraft 1.12's functions. More... | |
class | IntegerRange |
A class representing a range of integers. More... | |
class | Location2D |
A class that represents a Location in the x and z directions. More... | |
enum | MathOperation |
A representation of the math operations for the Minecraft scoreboard. More... | |
class | NativeProxyCommandSender |
A simple representation of Minecraft's CommandListenerWrapper, in the form of Bukkit's ProxiedCommandSender. More... | |
interface | Preview |
interface | PreviewableFunction |
interface | PreviewLegacy |
class | Rotation |
A class to represent the yaw and pitch rotation in degrees. More... | |
enum | ScoreboardSlot |
A representation of scoreboard display slots, as well as team colors for the sidebar. More... | |
class | SimpleFunctionWrapper |
A wrapper class for Minecraft 1.12's functions. More... | |
class | Time |
A class that represents time suggestions for the TimeArgument. More... | |
Functions | |
record | CommandResult (Command command, String[] args) |
CommandResult represents an executable command. More... | |
record | ComplexRecipeImpl (NamespacedKey key, Recipe recipe) implements ComplexRecipe |
Creates a ComplexRecipe based on a NamespacedKey and a Recipe object. More... | |
record | ParticleData< T > (Particle particle, T data) |
A data structure that stores a particle and its corresponding data (or null if no data is present) More... | |
Classes that are wrappers for various vanilla-related command features.
record dev.jorel.commandapi.wrappers.CommandResult | ( | Command | command, |
String[] | args | ||
) |
CommandResult represents an executable command.
It contains the following methods:
CommandResult#command
- the command which this CommandResult
contains CommandResult#args
- the arguments that were provided to this command CommandResult#execute(CommandSender)
- Run the command using the given CommandSender directly Executes this command with a provided CommandSender
. This is equivalent to running result.command().execute(sender, result.command().getLabel(), result.args());
sender | the command sender that will be used to execute this command |
command | The executable Bukkit Command that this CommandResult contains. |
args | The arguments provided to this command. |
record dev.jorel.commandapi.wrappers.ComplexRecipeImpl | ( | NamespacedKey | key, |
Recipe | recipe | ||
) |
Creates a ComplexRecipe based on a NamespacedKey and a Recipe object.
key | the namespaced key |
recipe | the recipe |
Get the result of this recipe.
Return the namespaced identifier for this object.
record dev.jorel.commandapi.wrappers.ParticleData< T > | ( | Particle | particle, |
T | data | ||
) |
A data structure that stores a particle and its corresponding data (or null if no data is present)
particle | The particle that this data structure is storing. |
data | The data that this particle contains, or null if no data is present. This can be passed to org.bukkit.World#spawnParticle |