Interface CommandRegistrationApi

All Known Implementing Classes:
CommandRegistrationImpl

public interface CommandRegistrationApi
Provides a method to register a command at startup.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    registerCommand(com.mojang.brigadier.builder.LiteralArgumentBuilder<?> command)
    Adds the provided command to the list of commands to be registered at startup.
    void
    registerCommandImpl(com.mojang.brigadier.builder.LiteralArgumentBuilder<?> command)
     
  • Field Details

  • Method Details

    • registerCommand

      static void registerCommand(com.mojang.brigadier.builder.LiteralArgumentBuilder<?> command)
      Adds the provided command to the list of commands to be registered at startup.
      Parameters:
      command - the command to register
    • registerCommandImpl

      @Internal void registerCommandImpl(com.mojang.brigadier.builder.LiteralArgumentBuilder<?> command)