CommandAPI 9.3.0
An API for the command UI introduced in Minecraft 1.13
Package dev.jorel.commandapi.wrappers

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...
 

Detailed Description

Classes that are wrappers for various vanilla-related command features.

Function Documentation

◆ CommandResult()

record dev.jorel.commandapi.wrappers.CommandResult ( Command  command,
String[]  args 
)

CommandResult represents an executable command.

It contains the following methods:

Executes this command with a provided CommandSender. This is equivalent to running result.command().execute(sender, result.command().getLabel(), result.args());

Parameters
senderthe command sender that will be used to execute this command
Parameters
commandThe executable Bukkit Command that this CommandResult contains.
argsThe arguments provided to this command.

◆ ComplexRecipeImpl()

record dev.jorel.commandapi.wrappers.ComplexRecipeImpl ( NamespacedKey  key,
Recipe  recipe 
)

Creates a ComplexRecipe based on a NamespacedKey and a Recipe object.

Parameters
keythe namespaced key
recipethe recipe

Get the result of this recipe.

Returns
The result stack

Return the namespaced identifier for this object.

Returns
this object's key

◆ ParticleData< T >()

record dev.jorel.commandapi.wrappers.ParticleData< T > ( Particle  particle,
data 
)

A data structure that stores a particle and its corresponding data (or null if no data is present)

Parameters
particleThe particle that this data structure is storing.
dataThe data that this particle contains, or null if no data is present. This can be passed to org.bukkit.World#spawnParticle