Uses of Class
dev.jorel.commandapi.Tooltip
Packages that use Tooltip
Package
Description
Classes to be used as arguments for commands
-
Uses of Tooltip in dev.jorel.commandapi
Methods in dev.jorel.commandapi that return TooltipModifier and TypeMethodDescriptionstatic <S> Tooltip<S>[]Constructs aTooltip<S>[] from an array ofTooltip<S>via varargs.static <S> Tooltip<S>Tooltip.none(S object) Constructs aTooltip<S>with a suggestion and no tooltipstatic <S> Tooltip<S>Deprecated, for removal: This API element is subject to removal in a future version.static <S> Tooltip<S>Tooltip.ofAdventureComponent(S object, net.kyori.adventure.text.Component tooltip) Constructs aTooltip<S>with a suggestion and a formatted tooltipstatic <S> Tooltip<S>Tooltip.ofBaseComponents(S object, net.md_5.bungee.api.chat.BaseComponent... tooltip) Constructs aTooltip<S>with a suggestion and a formatted tooltipstatic <S> Tooltip<S>Tooltip.ofMessage(S object, com.mojang.brigadier.Message tooltip) Constructs aTooltip<S>with a suggestion and a tooltipstatic <S> Tooltip<S>Constructs aTooltip<S>with a suggestion and a tooltipMethods in dev.jorel.commandapi that return types with arguments of type TooltipModifier and TypeMethodDescriptionstatic <S> Function<Tooltip<S>,StringTooltip> Constructs a function that maps the currentTooltip<S>into a StringTooltip, using a standard mapping function which is defined for a given argument.static <S> Collection<Tooltip<S>>Tooltip.generateAdvenureComponents(Function<S, net.kyori.adventure.text.Component> tooltipGenerator, Collection<S> suggestions) Constructs a collection ofTooltip<S>objects from a collection of suggestions, and a function which generates a tooltip formatted as an adventureComponentfor each suggestionstatic <S> Collection<Tooltip<S>>Tooltip.generateAdvenureComponents(Function<S, net.kyori.adventure.text.Component> tooltipGenerator, S... suggestions) Constructs a collection ofTooltip<S>objects from an array of suggestions, and a function which generates a tooltip formatted as an adventureComponentfor each suggestionstatic <S> Collection<Tooltip<S>>Tooltip.generateBaseComponents(Function<S, net.md_5.bungee.api.chat.BaseComponent[]> tooltipGenerator, Collection<S> suggestions) Constructs a collection ofTooltip<S>objects from a collection of suggestions, and a function which generates a tooltip formatted as an array ofBaseComponents for each suggestionstatic <S> Collection<Tooltip<S>>Tooltip.generateBaseComponents(Function<S, net.md_5.bungee.api.chat.BaseComponent[]> tooltipGenerator, S... suggestions) Constructs a collection ofTooltip<S>objects from an array of suggestions, and a function which generates a tooltip formatted as an array ofBaseComponents for each suggestionstatic <S> Collection<Tooltip<S>>Tooltip.generateMessages(Function<S, com.mojang.brigadier.Message> tooltipGenerator, Collection<S> suggestions) Constructs a collection ofTooltip<S>objects from an collection of suggestions, and a function which generates a formatted tooltip for each suggestionstatic <S> Collection<Tooltip<S>>Tooltip.generateMessages(Function<S, com.mojang.brigadier.Message> tooltipGenerator, S... suggestions) Constructs a collection ofTooltip<S>objects from an array of suggestions, and a function which generates a formatted tooltip for each suggestionstatic <S> Collection<Tooltip<S>>Tooltip.generateStrings(Function<S, String> tooltipGenerator, Collection<S> suggestions) Constructs a collection ofTooltip<S>objects from a collection of suggestions, and a function which generates a string tooltip for each suggestionstatic <S> Collection<Tooltip<S>>Tooltip.generateStrings(Function<S, String> tooltipGenerator, S... suggestions) Constructs a collection ofTooltip<S>objects from an array of suggestions, and a function which generates a string tooltip for each suggestionstatic <S> Collection<Tooltip<S>>Tooltip.none(Collection<S> suggestions) Constructs a collection ofTooltip<S>objects from a collection of suggestions, and no tooltipsstatic <S> Collection<Tooltip<S>>Tooltip.none(S... suggestions) Constructs a collection ofTooltip<S>objects from an array of suggestions, and no tooltipsMethods in dev.jorel.commandapi with parameters of type Tooltip -
Uses of Tooltip in dev.jorel.commandapi.arguments
Methods in dev.jorel.commandapi.arguments with parameters of type TooltipModifier and TypeMethodDescriptionstatic <T> SafeSuggestions<T>Suggest an array of hardcoded values with tooltipsMethod parameters in dev.jorel.commandapi.arguments with type arguments of type TooltipModifier and TypeMethodDescriptionstatic <T> SafeSuggestions<T>SafeSuggestions.tooltipCollection(Function<SuggestionInfo, Collection<Tooltip<T>>> suggestions) Suggest a collection of values with tooltips as the result of a functionstatic <T> SafeSuggestions<T>SafeSuggestions.tooltipCollectionAsync(Function<SuggestionInfo, CompletableFuture<Collection<Tooltip<T>>>> suggestions) Suggest a collection of values with tooltips asynchronouslystatic <T> SafeSuggestions<T>SafeSuggestions.tooltips(Collection<Tooltip<T>> suggestions) Suggest a collection of hardcoded values with tooltips
ofString(Object, String)instead