Package dev.jorel.commandapi.arguments
Class Argument<T>
java.lang.Object
dev.jorel.commandapi.AbstractArgumentTree<Argument<T>,Argument<?>,com.velocitypowered.api.command.CommandSource>
dev.jorel.commandapi.arguments.AbstractArgument<T,Argument<T>,Argument<?>,com.velocitypowered.api.command.CommandSource>
dev.jorel.commandapi.arguments.Argument<T>
- Type Parameters:
T- The type of the underlying object that this argument casts to
- All Implemented Interfaces:
ChainableBuilder<Argument<T>>,PlatformExecutable<Argument<T>,,com.velocitypowered.api.command.CommandSource> VelocityExecutable<Argument<T>>
- Direct Known Subclasses:
LiteralArgument,MultiLiteralArgument,SafeOverrideableArgument,StringArgument,TextArgument
public abstract class Argument<T>
extends AbstractArgument<T,Argument<T>,Argument<?>,com.velocitypowered.api.command.CommandSource>
implements VelocityExecutable<Argument<T>>
The core abstract class for Command API arguments
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected CommandAPIExecutor<com.velocitypowered.api.command.CommandSource, AbstractCommandSender<? extends com.velocitypowered.api.command.CommandSource>> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCommandAPIExecutor<com.velocitypowered.api.command.CommandSource, AbstractCommandSender<? extends com.velocitypowered.api.command.CommandSource>> instance()voidsetExecutor(CommandAPIExecutor<com.velocitypowered.api.command.CommandSource, AbstractCommandSender<? extends com.velocitypowered.api.command.CommandSource>> arg0) Methods inherited from class dev.jorel.commandapi.arguments.AbstractArgument
combineWith, copyPermissionsAndRequirements, getArgumentPermission, getArgumentType, getCombinedArguments, getEntityNames, getHelpString, getIncludedSuggestions, getNodeName, getOverriddenSuggestions, getPrimitiveType, getRawType, getRequirements, hasCombinedArguments, includeSuggestions, isListed, isOptional, parseArgument, replaceSuggestions, setListed, setOptional, toString, withPermission, withPermission, withRequirementMethods inherited from class dev.jorel.commandapi.AbstractArgumentTree
then, thenNested, thenNestedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface dev.jorel.commandapi.PlatformExecutable
getExecutorMethods inherited from interface dev.jorel.commandapi.VelocityExecutable
executes, executes, executes, executes, executesConsole, executesConsole, executesConsole, executesConsole, executesPlayer, executesPlayer, executesPlayer, executesPlayer
-
Field Details
-
executor
protected CommandAPIExecutor<com.velocitypowered.api.command.CommandSource,AbstractCommandSender<? extends com.velocitypowered.api.command.CommandSource>> executor
-
-
Constructor Details
-
Argument
Constructs an argument with a given NMS/brigadier type.- Parameters:
nodeName- the name to assign to this argument noderawType- the NMS or brigadier type to be used for this argument
-
-
Method Details
-
instance
- Specified by:
instancein interfaceChainableBuilder<T>
-
getExecutor
public CommandAPIExecutor<com.velocitypowered.api.command.CommandSource,AbstractCommandSender<? extends com.velocitypowered.api.command.CommandSource>> getExecutor() -
setExecutor
public void setExecutor(CommandAPIExecutor<com.velocitypowered.api.command.CommandSource, AbstractCommandSender<? extends com.velocitypowered.api.command.CommandSource>> arg0) -
clearExecutors
-