Interface CommandRegistrarType<T>

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

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.
      The type of command this registrar handles.
    • create

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