Interface CommandRegistrarType<T>
- Type Parameters:
T
- the handled command type
- All Superinterfaces:
DefaultedRegistryValue
A type of
CommandRegistrar
.
Each type is used to re-create registrars when the game chooses to reload commands.
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(CommandManager.Mutable manager) Create a new registrar of this type.io.leangen.geantyref.TypeToken
<T> Gets the type of command that this registrar handles.Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
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
- TheCommandManager
that has requested the creation of theCommandRegistrar
associated with this type- Returns:
- the newly created registrar
-