Package net.minecraft.commands
Interface SharedSuggestionProvider
- All Known Implementing Classes:
ClientSuggestionProvider
,CommandSourceStack
public interface SharedSuggestionProvider
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
customSuggestion(com.mojang.brigadier.context.CommandContext<SharedSuggestionProvider> p_82912_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82913_)
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>
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_)
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 <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() -
getSelectedEntities
-
getAllTeams
Collection<String> getAllTeams() -
getAvailableSoundEvents
Collection<ResourceLocation> getAvailableSoundEvents() -
getRecipeNames
Stream<ResourceLocation> getRecipeNames() -
customSuggestion
CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> customSuggestion(com.mojang.brigadier.context.CommandContext<SharedSuggestionProvider> p_82912_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_82913_) -
getRelevantCoordinates
-
getAbsoluteCoordinates
-
levels
Set<ResourceKey<Level>> levels() -
registryAccess
RegistryAccess registryAccess() -
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(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
-