|
CommandAPI 11.1.0
An API for the command UI introduced in Minecraft 1.13
|
A class to contain information about how to configure the CommandAPI during its loading step. More...
Inheritance diagram for dev.jorel.commandapi.CommandAPIConfig< Impl >:Public Member Functions | |
| Impl | verboseOutput (boolean value) |
| Sets verbose output logging for the CommandAPI if true. More... | |
| Impl | silentLogs (boolean value) |
| Silences all logs (including warnings, but not errors) for the CommandAPI if true. More... | |
| Impl | missingExecutorImplementationMessage (String value) |
| Sets the message to display to users when a command has no executor. More... | |
| Impl | dispatcherFile (File file) |
| Specifies the location for the CommandAPI to store the internal representation of Brigadier's command tree. More... | |
| Impl | setNamespace (String namespace) |
| Sets the default namespace to use when register commands. More... | |
| Impl | enableNetworking (boolean enabled) |
| Sets whether the CommandAPI's networking functionality should be enabled. More... | |
| Impl | makeNetworkingExceptionsWarnings (boolean value) |
| Sets whether the CommandAPI should throw an exception if it cannot send or receive a packet. More... | |
| Impl | instance () |
| Returns the instance of this class with the class Impl. More... | |
A class to contain information about how to configure the CommandAPI during its loading step.
You shouldn't use this class directly. Instead, use an appropriate subclass that corresponds to the platform you are developing for.
| Impl dev.jorel.commandapi.CommandAPIConfig< Impl >.dispatcherFile | ( | File | file | ) |
Specifies the location for the CommandAPI to store the internal representation of Brigadier's command tree.
| file | a file pointing to where to store Brigadier's JSON command dispatcher, for example new File(getDataFolder(), "command_registration.json"). If this argument is null, this file will not be created. |
| Impl dev.jorel.commandapi.CommandAPIConfig< Impl >.enableNetworking | ( | boolean | enabled | ) |
Sets whether the CommandAPI's networking functionality should be enabled.
This is currently only useful for allowing command requirements on Velocity.
| enabled | whether networking should be enabled |
|
inherited |
Returns the instance of this class with the class Impl.
Used for chaining builder methods.
Implemented in dev.jorel.commandapi.arguments.Argument< T >.
| Impl dev.jorel.commandapi.CommandAPIConfig< Impl >.makeNetworkingExceptionsWarnings | ( | boolean | value | ) |
Sets whether the CommandAPI should throw an exception if it cannot send or receive a packet.
If true, the problem will be logged as a warning instead.
| value | Whether networking exceptions should be logged as warnings. |
| Impl dev.jorel.commandapi.CommandAPIConfig< Impl >.missingExecutorImplementationMessage | ( | String | value | ) |
Sets the message to display to users when a command has no executor.
Available formatting parameters are:
| value | the message to display when a command has no executor |
| Impl dev.jorel.commandapi.CommandAPIConfig< Impl >.setNamespace | ( | String | namespace | ) |
Sets the default namespace to use when register commands.
| namespace | the namespace to use when register commands |
| Impl dev.jorel.commandapi.CommandAPIConfig< Impl >.silentLogs | ( | boolean | value | ) |
Silences all logs (including warnings, but not errors) for the CommandAPI if true.
| value | whether logging suppression should be enabled |
| Impl dev.jorel.commandapi.CommandAPIConfig< Impl >.verboseOutput | ( | boolean | value | ) |
Sets verbose output logging for the CommandAPI if true.
| value | whether verbose output should be enabled |