Class CloudBrigadierCommand<C,S>

java.lang.Object
org.incendo.cloud.brigadier.CloudBrigadierCommand<C,S>
Type Parameters:
C - command sender type
S - brigadier command source type
All Implemented Interfaces:
com.mojang.brigadier.Command<S>

@API(status=INTERNAL) public final class CloudBrigadierCommand<C,S> extends Object implements com.mojang.brigadier.Command<S>
Brigadier Command implementation that delegates to cloud.
  • Constructor Details

  • Method Details

    • run

      public int run(@NonNull com.mojang.brigadier.context.CommandContext<S> ctx)
      Specified by:
      run in interface com.mojang.brigadier.Command<C>
    • parsedNodes

      public static <S> List<Pair<com.mojang.brigadier.tree.CommandNode<S>,com.mojang.brigadier.context.StringRange>> parsedNodes(com.mojang.brigadier.context.CommandContext<S> commandContext)
      Return type changed at some point, but information is essentially the same. This code works for both versions of the method.
      Type Parameters:
      S - source type
      Parameters:
      commandContext - command context
      Returns:
      parsed nodes