|
38 | 38 |
|
39 | 39 | import java.util.List;
|
40 | 40 | import java.util.Optional;
|
| 41 | +import java.util.function.Predicate; |
41 | 42 |
|
42 | 43 | /**
|
43 | 44 | * {@link CommandRegistrar}s are the entry point for plugins wishing to provide
|
|
47 | 48 | * <p>This interface <em>does not</em> have a defined way to register commands,
|
48 | 49 | * it is up to the implementor to provide such a method. Such a registration
|
49 | 50 | * method <strong>must</strong> call
|
50 |
| - * {@link CommandManager#registerAlias(CommandRegistrar, PluginContainer, String, String...)} |
| 51 | + * {@link CommandManager#registerAlias(CommandRegistrar, PluginContainer, CommandTreeBuilder.Basic, Predicate, String, String...)} |
51 | 52 | * to indicate that they wish to take control of certain aliases. Beyond this
|
52 | 53 | * call, the {@link CommandRegistrar} will only need to retain the link between
|
53 | 54 | * the primary alias and the command to execute, as the {@link CommandManager}
|
@@ -144,15 +145,4 @@ public interface CommandRegistrar extends CatalogType {
|
144 | 145 | */
|
145 | 146 | void unregister(CommandMapping mapping);
|
146 | 147 |
|
147 |
| - /** |
148 |
| - * Called when an update to the client's command list is requested, |
149 |
| - * for client side completion. |
150 |
| - * |
151 |
| - * @param commandCause The {@link CommandCause} to build the tree for |
152 |
| - * @param builder The builder to supply command information to |
153 |
| - */ |
154 |
| - // TODO: Should this just be a player, as that's the only entity the tree |
155 |
| - // will be sent for? |
156 |
| - void completeCommandTree(CommandCause commandCause, CommandTreeBuilder.Basic builder); |
157 |
| - |
158 | 148 | }
|
0 commit comments