Interface CommandRegistrarType<T>
-
- Type Parameters:
T
- the handled command type
- All Superinterfaces:
DefaultedRegistryValue
public interface CommandRegistrarType<T> extends DefaultedRegistryValue
A type ofCommandRegistrar
.Each type is used to re-create registrars when the game chooses to reload commands.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description CommandRegistrar<T>
create(CommandManager.Mutable manager)
Create a new registrar of this type.io.leangen.geantyref.TypeToken<T>
handledType()
Gets the type of command that this registrar handles.-
Methods inherited from interface org.spongepowered.api.registry.DefaultedRegistryValue
asDefaultedReference, findKey, key
-
-
-
-
Method Detail
-
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)
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
-
-