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

An argument that represents a single entity. More...

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

Public Member Functions

 OneEntity (String nodeName)
 An argument that represents a single entity. More...
 
Class< Entity > 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 a single entity.

@apiNote Returns an Entity object

Constructor & Destructor Documentation

◆ OneEntity()

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

An argument that represents a single entity.

Parameters
nodeNamethe name of the node for this argument

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.