Package studio.mevera.imperat.responses
Class Response
java.lang.Object
studio.mevera.imperat.responses.Response
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedResponse(ResponseKey key, Supplier<String> contentSupplier) protectedResponse(ResponseKey key, Supplier<String> contentSupplier, @Nullable ResponseContentFetcher contentFetcher) -
Method Summary
Modifier and TypeMethodDescriptionaddPlaceholder(String id) @Nullable ResponseContentFetcherfinal @NotNull ResponseKeygetKey()<S extends CommandSource>
CompletableFuture<Void>sendContent(CommandContext<S> ctx, @Nullable PlaceholderDataProvider placeholders)
-
Constructor Details
-
Response
protected Response(ResponseKey key, Supplier<String> contentSupplier, @Nullable @Nullable ResponseContentFetcher contentFetcher) -
Response
-
-
Method Details
-
getKey
-
getContentFetcher
-
addPlaceholder
-
addContextPlaceholders
-
sendContent
public <S extends CommandSource> CompletableFuture<Void> sendContent(CommandContext<S> ctx, @Nullable @Nullable PlaceholderDataProvider placeholders)
-