Skip to content

Block Predicate

Returns Predicate<Block>, using this syntax. Example:

Java
new StellarCommand("isblock")
    .addBlockPredicateArgument("predicate")
    .addExecution(Player.class, context -> { 
        Predicate<Block> data = context.getArgument<Predicate<Block>>("predicate")
        boolean isBlock = data.test(block)
        sender.sendMessage(isBlock.toString())
    });
Argument Parser

Block Predicate Argument

Released under the MIT License.