Interface CommandRegistry


public interface CommandRegistry
  • Method Summary

    Modifier and Type
    Method
    Description
    static @NotNull CommandRegistry
     
    static @NotNull CommandRegistry
    of(@NotNull Consumer<net.minestom.server.command.builder.Command> register, @NotNull Consumer<net.minestom.server.command.builder.Command> unregister)
     
    void
    register(@NotNull net.minestom.server.command.builder.Command command)
     
    void
    unregister(@NotNull net.minestom.server.command.builder.Command command)
     
  • Method Details

    • of

      @NotNull static @NotNull CommandRegistry of(@NotNull @NotNull Consumer<net.minestom.server.command.builder.Command> register, @NotNull @NotNull Consumer<net.minestom.server.command.builder.Command> unregister)
    • minestom

      @NotNull static @NotNull CommandRegistry minestom()
    • register

      void register(@NotNull @NotNull net.minestom.server.command.builder.Command command)
    • unregister

      void unregister(@NotNull @NotNull net.minestom.server.command.builder.Command command)