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

An argument that represents many entities. More...

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

Public Member Functions

 ManyEntities (String nodeName)
 An argument that represents many entities. More...
 
 ManyEntities (String nodeName, boolean allowEmpty)
 An argument that represents many entities. 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 entities.

@apiNote Returns a Collection<Entity> object

Constructor & Destructor Documentation

◆ ManyEntities() [1/2]

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

An argument that represents many entities.

Parameters
nodeNamethe name of the node for this argument

◆ ManyEntities() [2/2]

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

An argument that represents many entities.

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.