Interface CommandRegistrarType<T>

Type Parameters:
T - the handled command type
All Superinterfaces:
DefaultedRegistryValue

public interface CommandRegistrarType<T> extends DefaultedRegistryValue
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

      Create a new registrar of this type.
      Parameters:
      manager - The CommandManager that has requested the creation of the CommandRegistrar associated with this type
      Returns:
      the newly created registrar