public static interface AsyncTabCompleteEvent.Completion
extends net.kyori.examination.Examinable
Component
tooltip.Modifier and Type | Method and Description |
---|---|
static @NotNull AsyncTabCompleteEvent.Completion |
completion(@NotNull String suggestion)
Create a new
AsyncTabCompleteEvent.Completion from a suggestion string. |
static @NotNull AsyncTabCompleteEvent.Completion |
completion(@NotNull String suggestion,
@Nullable net.kyori.adventure.text.Component tooltip)
Create a new
AsyncTabCompleteEvent.Completion from a suggestion string and a tooltip Component . |
default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty> |
examinableProperties() |
@NotNull String |
suggestion()
Get the suggestion string for this
AsyncTabCompleteEvent.Completion . |
@Nullable net.kyori.adventure.text.Component |
tooltip()
Get the suggestion tooltip for this
AsyncTabCompleteEvent.Completion . |
@NotNull @NotNull String suggestion()
AsyncTabCompleteEvent.Completion
.@Nullable @Nullable net.kyori.adventure.text.Component tooltip()
AsyncTabCompleteEvent.Completion
.@NotNull default @NotNull Stream<? extends net.kyori.examination.ExaminableProperty> examinableProperties()
examinableProperties
in interface net.kyori.examination.Examinable
@NotNull static @NotNull AsyncTabCompleteEvent.Completion completion(@NotNull @NotNull String suggestion)
AsyncTabCompleteEvent.Completion
from a suggestion string.suggestion
- suggestion string@NotNull static @NotNull AsyncTabCompleteEvent.Completion completion(@NotNull @NotNull String suggestion, @Nullable @Nullable net.kyori.adventure.text.Component tooltip)
AsyncTabCompleteEvent.Completion
from a suggestion string and a tooltip Component
.
If the provided component is null, the suggestion will not have a tooltip.
suggestion
- suggestion stringtooltip
- tooltip component, or nullCopyright © 2021. All rights reserved.