Interface CommandRegistrarType<T>

Type Parameters:
T - the handled command type
All Superinterfaces:
DefaultedRegistryValue<CommandRegistrarType<?>>

public interface CommandRegistrarType<T> extends DefaultedRegistryValue<CommandRegistrarType<?>>
A type of CommandRegistrar.

Each type is used to re-create registrars when the game chooses to reload commands.

  • Method Details

    • handledType

      io.leangen.geantyref.TypeToken<T> handledType()
      Gets the type of command that this registrar handles.
      Returns:
      The type of command this registrar handles.
    • create

      CommandRegistrar<T> create(CommandManager.Mutable manager, RegistryHolder registryHolder)
      Create a new registrar of this type.
      Parameters:
      manager - The CommandManager that has requested the creation of the CommandRegistrar associated with this type
      registryHolder - The owning registry holder.
      Returns:
      the newly created registrar