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

An argument that represents a Predicate<Block> More...

+ Inheritance diagram for dev.jorel.commandapi.arguments.BlockPredicateArgument:

Public Member Functions

 BlockPredicateArgument (String nodeName)
 Constructs a BlockPredicateArgument with a given node name. More...
 
Class< Predicate > getPrimitiveType ()
 
CommandAPIArgumentType getArgumentType ()
 
Argument< T > instance ()
 Returns the instance of this class with the class Impl. More...
 

Detailed Description

An argument that represents a Predicate<Block>

Since
4.0

@apiNote Returns a Predicate<Block> object

Constructor & Destructor Documentation

◆ BlockPredicateArgument()

dev.jorel.commandapi.arguments.BlockPredicateArgument.BlockPredicateArgument ( String  nodeName)

Constructs a BlockPredicateArgument with a given node name.

Represents a predicate for blocks

Parameters
nodeNamethe name of the node for 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.