Package net.minecraft.commands
Interface SharedSuggestionProvider
- All Known Implementing Classes:
ClientCommandSourceStack
,ClientSuggestionProvider
,CommandSourceStack
,CommandTests.ErrorCatchingStack
public interface SharedSuggestionProvider
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic enum
static class
-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> customSuggestion
(com.mojang.brigadier.context.CommandContext<?> p_212334_) static <T> void
filterResources
(Iterable<T> p_82939_, String p_82940_, String p_82941_, Function<T, ResourceLocation> p_82942_, Consumer<T> p_82943_) static <T> void
filterResources
(Iterable<T> p_82945_, String p_82946_, Function<T, ResourceLocation> p_82947_, Consumer<T> p_82948_) default Collection
<String> default Collection
<String> boolean
hasPermission
(int p_82986_) levels()
static boolean
matchesSubStr
(String p_82950_, String p_82951_) static CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> static <T> CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggest
(Iterable<T> p_165917_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_165918_, Function<T, String> p_165919_, Function<T, com.mojang.brigadier.Message> p_165920_) static CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> static CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> static CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggest2DCoordinates
(String p_82977_, Collection<SharedSuggestionProvider.TextCoordinates> p_82978_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82979_, Predicate<String> p_82980_) static CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestCoordinates
(String p_82953_, Collection<SharedSuggestionProvider.TextCoordinates> p_82954_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82955_, Predicate<String> p_82956_) default void
suggestRegistryElements
(Registry<?> p_212336_, SharedSuggestionProvider.ElementSuggestionType p_212337_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_212338_) CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestRegistryElements
(ResourceKey<? extends Registry<?>> p_212339_, SharedSuggestionProvider.ElementSuggestionType p_212340_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_212341_, com.mojang.brigadier.context.CommandContext<?> p_212342_) static CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestResource
(Iterable<ResourceLocation> p_82927_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82928_) static CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestResource
(Iterable<ResourceLocation> p_82930_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82931_, String p_82932_) static <T> CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestResource
(Iterable<T> p_82934_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82935_, Function<T, ResourceLocation> p_82936_, Function<T, com.mojang.brigadier.Message> p_82937_) static CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestResource
(Stream<ResourceLocation> p_82958_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82959_) static CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestResource
(Stream<ResourceLocation> p_205107_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_205108_, String p_205109_) static <T> CompletableFuture
<com.mojang.brigadier.suggestion.Suggestions> suggestResource
(Stream<T> p_82961_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82962_, Function<T, ResourceLocation> p_82963_, Function<T, com.mojang.brigadier.Message> p_82964_)
-
Method Details
-
getOnlinePlayerNames
Collection<String> getOnlinePlayerNames() -
getCustomTabSugggestions
-
getSelectedEntities
-
getAllTeams
Collection<String> getAllTeams() -
getAvailableSounds
Stream<ResourceLocation> getAvailableSounds() -
getRecipeNames
Stream<ResourceLocation> getRecipeNames() -
customSuggestion
CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> customSuggestion(com.mojang.brigadier.context.CommandContext<?> p_212334_) -
getRelevantCoordinates
-
getAbsoluteCoordinates
-
levels
Set<ResourceKey<Level>> levels() -
registryAccess
RegistryAccess registryAccess() -
enabledFeatures
FeatureFlagSet enabledFeatures() -
hasPermission
boolean hasPermission(int p_82986_) -
filterResources
static <T> void filterResources(Iterable<T> p_82945_, String p_82946_, Function<T, ResourceLocation> p_82947_, Consumer<T> p_82948_) -
filterResources
-
suggestResource
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource(Iterable<ResourceLocation> p_82930_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82931_, String p_82932_) -
suggestResource
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource(Stream<ResourceLocation> p_205107_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_205108_, String p_205109_) -
suggestResource
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource(Iterable<ResourceLocation> p_82927_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82928_) -
suggestResource
static <T> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource(Iterable<T> p_82934_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82935_, Function<T, ResourceLocation> p_82936_, Function<T, com.mojang.brigadier.Message> p_82937_) -
suggestResource
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource(Stream<ResourceLocation> p_82958_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82959_) -
suggestResource
static <T> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource(Stream<T> p_82961_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82962_, Function<T, ResourceLocation> p_82963_, Function<T, com.mojang.brigadier.Message> p_82964_) -
suggestCoordinates
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestCoordinates(String p_82953_, Collection<SharedSuggestionProvider.TextCoordinates> p_82954_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82955_, Predicate<String> p_82956_) -
suggest2DCoordinates
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest2DCoordinates(String p_82977_, Collection<SharedSuggestionProvider.TextCoordinates> p_82978_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82979_, Predicate<String> p_82980_) -
suggest
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest(Iterable<String> p_82971_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82972_) -
suggest
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest(Stream<String> p_82982_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82983_) -
suggest
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest(String[] p_82968_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82969_) -
suggest
static <T> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest(Iterable<T> p_165917_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_165918_, Function<T, String> p_165919_, Function<T, com.mojang.brigadier.Message> p_165920_) -
matchesSubStr
-