Interface ClientCommand


public interface ClientCommand
A client-only command tree, independent of a loader's command source type.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static enum 
     
  • Method Summary

    Modifier and Type
    Method
    Description
    <S> com.mojang.brigadier.builder.LiteralArgumentBuilder<S>
    build(java.lang.String literal)
    Build a fresh tree for each client dispatcher.
  • Method Details

    • build

      <S> com.mojang.brigadier.builder.LiteralArgumentBuilder<S> build(java.lang.String literal)
      Build a fresh tree for each client dispatcher. The root must have the supplied literal. Construction only declares syntax and callbacks; it must not perform I/O, resolve a world, open a screen, or retain the builder after returning it. Callbacks run on the client thread. Resolve world resources through your WorldBinding at execution time. The source type is loader-owned: do not cast it to a particular loader's source class.
      Type Parameters:
      S - the loader's client command source
      Parameters:
      literal - the registered command name
      Returns:
      a fresh tree owned by the host after this method returns