CommandAPI 9.7.0
An API for the command UI introduced in Minecraft 1.13
dev.jorel.commandapi.arguments.EntitySelectorArgument.ManyPlayers Class Reference

An argument that represents many players. More...

+ Inheritance diagram for dev.jorel.commandapi.arguments.EntitySelectorArgument.ManyPlayers:

Public Member Functions

 ManyPlayers (String nodeName)
 An argument that represents many players. More...
 
 ManyPlayers (String nodeName, boolean allowEmpty)
 An argument that represents many players. More...
 
Class< Collection > getPrimitiveType ()
 
CommandAPIArgumentType getArgumentType ()
 
List< String > getEntityNames (Object argument)
 
Argument< T > instance ()
 Returns the instance of this class with the class Impl. More...
 

Detailed Description

An argument that represents many players.

@apiNote Returns a Collection<Player> object

Constructor & Destructor Documentation

◆ ManyPlayers() [1/2]

dev.jorel.commandapi.arguments.EntitySelectorArgument.ManyPlayers.ManyPlayers ( String  nodeName)

An argument that represents many players.

Parameters
nodeNamethe name of the node for this argument

◆ ManyPlayers() [2/2]

dev.jorel.commandapi.arguments.EntitySelectorArgument.ManyPlayers.ManyPlayers ( String  nodeName,
boolean  allowEmpty 
)

An argument that represents many players.

Parameters
nodeNamethe name of the node for this argument
allowEmptywhether this entity selector should allow no entities found, or should throw an error instead

Member Function Documentation

◆ instance()

Argument< T > dev.jorel.commandapi.arguments.Argument< T >.instance ( )
inherited

Returns the instance of this class with the class Impl.

Used for chaining builder methods.