| Package | Description |
|---|---|
| me.lucko.helper | |
| me.lucko.helper.command.functional |
| Modifier and Type | Method and Description |
|---|---|
static FunctionalCommandBuilder<CommandSender> |
Commands.create()
Creates and returns a new command builder
|
| Modifier and Type | Method and Description |
|---|---|
default FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertArgument(int index,
Predicate<String> test)
Tests a given argument with the provided predicate.
|
FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertArgument(int index,
Predicate<String> test,
String failureMessage)
Tests a given argument with the provided predicate.
|
default FunctionalCommandBuilder<ConsoleCommandSender> |
FunctionalCommandBuilder.assertConsole()
Asserts that the sender is instance of ConsoleCommandSender, and sends them the default failure message if
they're not.
|
FunctionalCommandBuilder<ConsoleCommandSender> |
FunctionalCommandBuilder.assertConsole(String failureMessage)
Asserts that the sender is instance of ConsoleCommandSender, and sends them the failure message if they're not
|
default FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertOp()
Asserts that the sender is op, and sends them the default failure message if they're not.
|
FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertOp(String failureMessage)
Asserts that the sender is op, and sends them the failure message if they don't have permission
|
default FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertPermission(String permission)
Asserts that the sender has the specified permission, and sends them the default failure message
if they don't have permission.
|
FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertPermission(String permission,
String failureMessage)
Asserts that the sender has the specified permission, and sends them the failure message if they
don't have permission.
|
default FunctionalCommandBuilder<Player> |
FunctionalCommandBuilder.assertPlayer()
Asserts that the sender is instance of Player, and sends them the default failure message if they're not.
|
FunctionalCommandBuilder<Player> |
FunctionalCommandBuilder.assertPlayer(String failureMessage)
Asserts that the sender is instance of Player, and sends them the failure message if they're not
|
default FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertSender(Predicate<T> test)
Tests the sender with the provided predicate.
|
FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertSender(Predicate<T> test,
String failureMessage)
Tests the sender with the provided predicate.
|
default FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertUsage(String usage)
Asserts that the arguments match the given usage string.
|
FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.assertUsage(String usage,
String failureMessage)
Asserts that the arguments match the given usage string.
|
FunctionalCommandBuilder<T> |
FunctionalCommandBuilder.description(String description)
Sets the command description to the specified one.
|
static FunctionalCommandBuilder<CommandSender> |
FunctionalCommandBuilder.newBuilder() |
Copyright © 2020. All rights reserved.