Package org.incendo.cloud.brigadier
Interface BrigadierManagerHolder<C,S>
- Type Parameters:
C- cloud command sender typeS- brigadier command source type
@API(status=STABLE,
since="2.0.0")
public interface BrigadierManagerHolder<C,S>
Interface implemented by
command managers that are capable of registering
commands to Brigadier using CloudBrigadierManager.- Since:
- 1.2.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic final class -
Method Summary
Modifier and TypeMethodDescription@NonNull CloudBrigadierManager<C,? extends S> Get theCloudBrigadierManagerused by thiscommand manager.booleanReturns whether theCloudBrigadierManageris present and active.
-
Method Details
-
hasBrigadierManager
@API(status=STABLE, since="2.0.0") boolean hasBrigadierManager()Returns whether theCloudBrigadierManageris present and active.- Returns:
- if the
brigadier manageris present and active - Since:
- 2.0.0
-
brigadierManager
Get theCloudBrigadierManagerused by thiscommand manager.Generally,
hasBrigadierManager()should be checked before calling this method. However, some command managers will always use Brigadier and in those cases the check can be skipped (this will be in the relevant manager's documentation).- Returns:
- the
CloudBrigadierManager - Throws:
BrigadierManagerHolder.BrigadierManagerNotPresent- whenhasBrigadierManager()is false- Since:
- 1.2.0
-