dev.jorel.commandapi.arguments.Argument Maven / Gradle / Ivy
package dev.jorel.commandapi.arguments;
import com.mojang.brigadier.arguments.ArgumentType;
import dev.jorel.commandapi.BukkitExecutable;
import org.bukkit.command.CommandSender;
/**
* The core abstract class for Command API arguments
*
* @param The type of the underlying object that this argument casts to
*/
public abstract class Argument extends AbstractArgument, Argument>, CommandSender> implements BukkitExecutable> {
/**
* Constructs an argument with a given NMS/brigadier type.
*
* @param nodeName the name to assign to this argument node
* @param rawType the NMS or brigadier type to be used for this argument
*/
protected Argument(String nodeName, ArgumentType> rawType) {
super(nodeName, rawType);
}
@Override
public Argument instance() {
return this;
}
}