CommandAPI 9.3.0
An API for the command UI introduced in Minecraft 1.13
com.mojang.brigadier.SingleRedirectModifier< S > Interface Template Reference

Basically a RedirectModifier (though no subtype) that only converts to a single command source. More...

Public Member Functions

apply (CommandContext< S > context) throws CommandSyntaxException
 Applies the redirect modifier to the command context, returning the new command source to use for invoking the command. More...
 

Detailed Description

Basically a RedirectModifier (though no subtype) that only converts to a single command source.

Parameters
<S>the type of the command source

Member Function Documentation

◆ apply()

Applies the redirect modifier to the command context, returning the new command source to use for invoking the command.

Parameters
contextthe command context to base it on
Returns
the new command source to invoke the command for
Exceptions
CommandSyntaxExceptionif an error occurred