ArgumentEntities

open class ArgumentEntities(val singleEntity: Boolean = false, val onlyPlayers: Boolean = false) : Argument<List<Entity>>

ArgumentEntities is a parsable argument that represents one or more entities in the game.

Parameters

singleEntity

If true, only a single entity can be selected.

onlyPlayers

If true, only player entities can be selected.

Inheritors

Constructors

Link copied to clipboard
constructor(singleEntity: Boolean = false, onlyPlayers: Boolean = false)

Properties

Link copied to clipboard
open override val consumes: Int = 1

The number of input strings this argument consumes.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
open override fun getParamFormat(isOptional: Boolean): String

Gets the usage string for this argument.

Link copied to clipboard
override fun parse(input: List<String>, sender: CommandSender): List<Entity>
open override fun parse(input: String, sender: CommandSender): List<Entity>

Parses the input string into the desired type.

Link copied to clipboard
override fun suggest(input: List<String>, sender: CommandSender): List<String>
open override fun suggest(input: String, sender: CommandSender): List<String>

Suggests possible completions for the input string.