CommandAPI 11.1.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  DoubleRange
 A class representing a range of doubles. 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...
 
interface  NativeProxyCommandSender
 A simple representation of Minecraft's CommandListenerWrapper, in the form of Bukkit's ProxiedCommandSender. More...
 
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 ParticleData< T > (Particle particle, @Nullable 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.

◆ ParticleData< T >()

record dev.jorel.commandapi.wrappers.ParticleData< T > ( Particle  particle,
@Nullable T  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