Package org.incendo.cloud.brigadier.node
Interface BrigadierNodeFactory<C,S,N extends com.mojang.brigadier.tree.CommandNode<S>>
- All Known Implementing Classes:
LiteralBrigadierNodeFactory
-
Method Summary
Modifier and TypeMethodDescriptioncreateNode(@NonNull String label, @NonNull Command<C> cloudCommand, @NonNull com.mojang.brigadier.Command<S> executor) Creates a Brigadier command node.createNode(@NonNull String label, @NonNull Command<C> cloudCommand, @NonNull com.mojang.brigadier.Command<S> executor, @NonNull BrigadierPermissionChecker<C> permissionChecker) Creates a Brigadier command node.createNode(@NonNull String label, @NonNull CommandNode<C> cloudCommand, @NonNull com.mojang.brigadier.Command<S> executor, @NonNull BrigadierPermissionChecker<C> permissionChecker) Creates a Brigadier command node.
-
Method Details
-
createNode
@NonNull N createNode(@NonNull String label, @NonNull CommandNode<C> cloudCommand, @NonNull com.mojang.brigadier.Command<S> executor, @NonNull BrigadierPermissionChecker<C> permissionChecker) Creates a Brigadier command node.- Parameters:
label- the command labelcloudCommand- the cloud command to create the node fromexecutor- the Brigadier command execution handlerpermissionChecker- function that determines whether a sender has access to the command- Returns:
- the created command node
-
createNode
@NonNull N createNode(@NonNull String label, @NonNull Command<C> cloudCommand, @NonNull com.mojang.brigadier.Command<S> executor, @NonNull BrigadierPermissionChecker<C> permissionChecker) Creates a Brigadier command node.- Parameters:
label- the command labelcloudCommand- the cloud commandexecutor- the Brigadier command execution handlerpermissionChecker- function that determines whether a sender has access to the command- Returns:
- the created command node
-
createNode
@NonNull N createNode(@NonNull String label, @NonNull Command<C> cloudCommand, @NonNull com.mojang.brigadier.Command<S> executor) Creates a Brigadier command node.- Parameters:
label- the command labelcloudCommand- the cloud commandexecutor- the Brigadier command execution handler- Returns:
- the created command node
-