Class LiteralBrigadierNodeFactory<C,S>

java.lang.Object
org.incendo.cloud.brigadier.node.LiteralBrigadierNodeFactory<C,S>
All Implemented Interfaces:
BrigadierNodeFactory<C,S,com.mojang.brigadier.tree.LiteralCommandNode<S>>

@API(status=STABLE, since="2.0.0") public final class LiteralBrigadierNodeFactory<C,S> extends Object implements BrigadierNodeFactory<C,S,com.mojang.brigadier.tree.LiteralCommandNode<S>>
  • Constructor Details

  • Method Details

    • createNode

      public @NonNull com.mojang.brigadier.tree.LiteralCommandNode<S> createNode(@NonNull String label, @NonNull CommandNode<C> cloudCommand, @NonNull com.mojang.brigadier.Command<S> executor, @NonNull BrigadierPermissionChecker<C> permissionChecker)
      Description copied from interface: BrigadierNodeFactory
      Creates a Brigadier command node.
      Specified by:
      createNode in interface BrigadierNodeFactory<C,S,com.mojang.brigadier.tree.LiteralCommandNode<S>>
      Parameters:
      label - the command label
      cloudCommand - the cloud command to create the node from
      executor - the Brigadier command execution handler
      permissionChecker - function that determines whether a sender has access to the command
      Returns:
      the created command node
    • createNode

      public @NonNull com.mojang.brigadier.tree.LiteralCommandNode<S> createNode(@NonNull String label, @NonNull Command<C> cloudCommand, @NonNull com.mojang.brigadier.Command<S> executor, @NonNull BrigadierPermissionChecker<C> permissionChecker)
      Description copied from interface: BrigadierNodeFactory
      Creates a Brigadier command node.
      Specified by:
      createNode in interface BrigadierNodeFactory<C,S,com.mojang.brigadier.tree.LiteralCommandNode<S>>
      Parameters:
      label - the command label
      cloudCommand - the cloud command
      executor - the Brigadier command execution handler
      permissionChecker - function that determines whether a sender has access to the command
      Returns:
      the created command node
    • createNode

      public @NonNull com.mojang.brigadier.tree.LiteralCommandNode<S> createNode(@NonNull String label, @NonNull Command<C> cloudCommand, @NonNull com.mojang.brigadier.Command<S> executor)
      Description copied from interface: BrigadierNodeFactory
      Creates a Brigadier command node.
      Specified by:
      createNode in interface BrigadierNodeFactory<C,S,com.mojang.brigadier.tree.LiteralCommandNode<S>>
      Parameters:
      label - the command label
      cloudCommand - the cloud command
      executor - the Brigadier command execution handler
      Returns:
      the created command node