Package cloud.commandframework.captions
Interface FactoryDelegatingCaptionRegistry<C>
- Type Parameters:
C- Command sender type
- All Superinterfaces:
CaptionRegistry<C>
- All Known Implementing Classes:
SimpleCaptionRegistry
Caption registry that delegates to factory methods
-
Method Summary
Modifier and TypeMethodDescriptionvoidregisterMessageFactory(@NonNull Caption caption, @NonNull BiFunction<Caption,C,String> factory)Register a message factoryMethods inherited from interface cloud.commandframework.captions.CaptionRegistry
getCaption
-
Method Details
-
registerMessageFactory
void registerMessageFactory(@NonNull Caption caption, @NonNull BiFunction<Caption,C,String> factory)Register a message factory- Parameters:
caption- Caption keyfactory- Message factory
-