All Downloads are FREE. Search and download functionalities are using the official Maven repository.

dev.jorel.commandapi.arguments.Argument Maven / Gradle / Ivy

There is a newer version: 9.5.3
Show newest version
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;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy