Interface AsyncTabCompleteEvent.Completion
- All Superinterfaces:
net.kyori.examination.Examinable
- Enclosing class:
- AsyncTabCompleteEvent
public static interface AsyncTabCompleteEvent.Completion
extends net.kyori.examination.Examinable
A rich tab completion, consisting of a string suggestion, and a nullable
Component
tooltip.-
Method Summary
Modifier and TypeMethodDescriptioncompletion
(@NotNull String suggestion) Create a newAsyncTabCompleteEvent.Completion
from a suggestion string.completion
(@NotNull String suggestion, @Nullable Component tooltip) Create a newAsyncTabCompleteEvent.Completion
from a suggestion string and a tooltipComponent
.Get the suggestion string for thisAsyncTabCompleteEvent.Completion
.tooltip()
Get the suggestion tooltip for thisAsyncTabCompleteEvent.Completion
.Methods inherited from interface net.kyori.examination.Examinable
examinableName, examine
-
Method Details
-
suggestion
Get the suggestion string for thisAsyncTabCompleteEvent.Completion
.- Returns:
- suggestion string
-
tooltip
Get the suggestion tooltip for thisAsyncTabCompleteEvent.Completion
.- Returns:
- tooltip component
-
examinableProperties
@NotNull default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()- Specified by:
examinableProperties
in interfacenet.kyori.examination.Examinable
-
completion
@NotNull static @NotNull AsyncTabCompleteEvent.Completion completion(@NotNull @NotNull String suggestion) Create a newAsyncTabCompleteEvent.Completion
from a suggestion string.- Parameters:
suggestion
- suggestion string- Returns:
- new completion instance
-
completion
@NotNull static @NotNull AsyncTabCompleteEvent.Completion completion(@NotNull @NotNull String suggestion, @Nullable @Nullable Component tooltip) Create a newAsyncTabCompleteEvent.Completion
from a suggestion string and a tooltipComponent
.If the provided component is null, the suggestion will not have a tooltip.
- Parameters:
suggestion
- suggestion stringtooltip
- tooltip component, or null- Returns:
- new completion instance
-