A - The actor typepublic static class Hooks.Builder<A extends CommandActor>
extends java.lang.Object
Hooks| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
@NotNull Hooks<A> |
build()
Creates a new
Hooks registry from this builder |
@NotNull Hooks.Builder<A> |
onCommandExecuted(@NotNull CommandExecutedHook<? super A> hook)
Adds a hook that runs before a command is executed
|
@NotNull Hooks.Builder<A> |
onCommandRegistered(@NotNull CommandRegisteredHook<? super A> hook)
Adds a hook that runs after a command is registered
|
@NotNull Hooks.Builder<A> |
onCommandUnregistered(@NotNull CommandUnregisteredHook<? super A> hook)
Adds a hook that runs after a command is unregistered
|
@NotNull public @NotNull Hooks.Builder<A> onCommandExecuted(@NotNull @NotNull CommandExecutedHook<? super A> hook)
hook - Hook to register@NotNull public @NotNull Hooks.Builder<A> onCommandRegistered(@NotNull @NotNull CommandRegisteredHook<? super A> hook)
hook - Hook to register@NotNull public @NotNull Hooks.Builder<A> onCommandUnregistered(@NotNull @NotNull CommandUnregisteredHook<? super A> hook)
hook - Hook to register