Package net.minecraft.command
Interface ISuggestionProvider
- All Known Implementing Classes:
ClientSuggestionProvider
,CommandSource
public interface ISuggestionProvider
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptionCompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
customSuggestion
(com.mojang.brigadier.context.CommandContext<ISuggestionProvider> p_197009_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_197009_2_) static <T> void
filterResources
(Iterable<T> p_210511_0_, String p_210511_1_, String p_210511_2_, Function<T, ResourceLocation> p_210511_3_, Consumer<T> p_210511_4_) static <T> void
filterResources
(Iterable<T> p_210512_0_, String p_210512_1_, Function<T, ResourceLocation> p_210512_2_, Consumer<T> p_210512_3_) default Collection<String>
boolean
hasPermission
(int p_197034_1_) levels()
static boolean
matchesSubStr
(String p_237256_0_, String p_237256_1_) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggest
(Iterable<String> p_197005_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_197005_1_) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggest2DCoordinates
(String p_211269_0_, Collection<ISuggestionProvider.Coordinates> p_211269_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_211269_2_, Predicate<String> p_211269_3_) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestCoordinates
(String p_209000_0_, Collection<ISuggestionProvider.Coordinates> p_209000_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_209000_2_, Predicate<String> p_209000_3_) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestResource
(Iterable<ResourceLocation> p_197014_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_197014_1_) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestResource
(Iterable<ResourceLocation> p_197006_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_197006_1_, String p_197006_2_) static <T> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestResource
(Iterable<T> p_210514_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_210514_1_, Function<T, ResourceLocation> p_210514_2_, Function<T, com.mojang.brigadier.Message> p_210514_3_) static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestResource
(Stream<ResourceLocation> p_212476_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_212476_1_) static <T> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestResource
(Stream<T> p_201725_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_201725_1_, Function<T, ResourceLocation> p_201725_2_, Function<T, com.mojang.brigadier.Message> p_201725_3_)
-
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<ISuggestionProvider> p_197009_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_197009_2_) -
getRelevantCoordinates
-
getAbsoluteCoordinates
-
levels
Set<RegistryKey<World>> levels() -
registryAccess
DynamicRegistries registryAccess() -
hasPermission
boolean hasPermission(int p_197034_1_) -
filterResources
static <T> void filterResources(Iterable<T> p_210512_0_, String p_210512_1_, Function<T, ResourceLocation> p_210512_2_, Consumer<T> p_210512_3_) -
filterResources
-
suggestResource
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource(Iterable<ResourceLocation> p_197006_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_197006_1_, String p_197006_2_) -
suggestResource
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource(Iterable<ResourceLocation> p_197014_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_197014_1_) -
suggestResource
static <T> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource(Iterable<T> p_210514_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_210514_1_, Function<T, ResourceLocation> p_210514_2_, Function<T, com.mojang.brigadier.Message> p_210514_3_) -
suggestResource
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource(Stream<ResourceLocation> p_212476_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_212476_1_) -
suggestResource
static <T> CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource(Stream<T> p_201725_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_201725_1_, Function<T, ResourceLocation> p_201725_2_, Function<T, com.mojang.brigadier.Message> p_201725_3_) -
suggestCoordinates
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestCoordinates(String p_209000_0_, Collection<ISuggestionProvider.Coordinates> p_209000_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_209000_2_, Predicate<String> p_209000_3_) -
suggest2DCoordinates
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest2DCoordinates(String p_211269_0_, Collection<ISuggestionProvider.Coordinates> p_211269_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_211269_2_, Predicate<String> p_211269_3_) -
suggest
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest(Iterable<String> p_197005_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_197005_1_) -
suggest
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest(Stream<String> p_197013_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_197013_1_) -
suggest
static CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest(String[] p_197008_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_197008_1_) -
matchesSubStr
-