Interface ISuggestionProvider

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods Default Methods 
      Modifier and Type Method Description
      java.util.concurrent.CompletableFuture<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​(java.lang.Iterable<T> p_210511_0_, java.lang.String p_210511_1_, java.lang.String p_210511_2_, java.util.function.Function<T,​ResourceLocation> p_210511_3_, java.util.function.Consumer<T> p_210511_4_)  
      static <T> void filterResources​(java.lang.Iterable<T> p_210512_0_, java.lang.String p_210512_1_, java.util.function.Function<T,​ResourceLocation> p_210512_2_, java.util.function.Consumer<T> p_210512_3_)  
      default java.util.Collection<ISuggestionProvider.Coordinates> getAbsoluteCoordinates()  
      java.util.Collection<java.lang.String> getAllTeams()  
      java.util.Collection<ResourceLocation> getAvailableSoundEvents()  
      java.util.Collection<java.lang.String> getOnlinePlayerNames()  
      java.util.stream.Stream<ResourceLocation> getRecipeNames()  
      default java.util.Collection<ISuggestionProvider.Coordinates> getRelevantCoordinates()  
      default java.util.Collection<java.lang.String> getSelectedEntities()  
      boolean hasPermission​(int p_197034_1_)  
      java.util.Set<RegistryKey<World>> levels()  
      static boolean matchesSubStr​(java.lang.String p_237256_0_, java.lang.String p_237256_1_)  
      DynamicRegistries registryAccess()  
      static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest​(java.lang.Iterable<java.lang.String> p_197005_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_197005_1_)  
      static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest​(java.lang.String[] p_197008_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_197008_1_)  
      static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest​(java.util.stream.Stream<java.lang.String> p_197013_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_197013_1_)  
      static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest2DCoordinates​(java.lang.String p_211269_0_, java.util.Collection<ISuggestionProvider.Coordinates> p_211269_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_211269_2_, java.util.function.Predicate<java.lang.String> p_211269_3_)  
      static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestCoordinates​(java.lang.String p_209000_0_, java.util.Collection<ISuggestionProvider.Coordinates> p_209000_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_209000_2_, java.util.function.Predicate<java.lang.String> p_209000_3_)  
      static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource​(java.lang.Iterable<ResourceLocation> p_197014_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_197014_1_)  
      static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource​(java.lang.Iterable<ResourceLocation> p_197006_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_197006_1_, java.lang.String p_197006_2_)  
      static <T> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource​(java.lang.Iterable<T> p_210514_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_210514_1_, java.util.function.Function<T,​ResourceLocation> p_210514_2_, java.util.function.Function<T,​com.mojang.brigadier.Message> p_210514_3_)  
      static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource​(java.util.stream.Stream<ResourceLocation> p_212476_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_212476_1_)  
      static <T> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource​(java.util.stream.Stream<T> p_201725_0_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_201725_1_, java.util.function.Function<T,​ResourceLocation> p_201725_2_, java.util.function.Function<T,​com.mojang.brigadier.Message> p_201725_3_)  
    • Method Detail

      • getOnlinePlayerNames

        java.util.Collection<java.lang.String> getOnlinePlayerNames()
      • getSelectedEntities

        default java.util.Collection<java.lang.String> getSelectedEntities()
      • getAllTeams

        java.util.Collection<java.lang.String> getAllTeams()
      • getAvailableSoundEvents

        java.util.Collection<ResourceLocation> getAvailableSoundEvents()
      • customSuggestion

        java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> customSuggestion​(com.mojang.brigadier.context.CommandContext<ISuggestionProvider> p_197009_1_,
                                                                                                             com.mojang.brigadier.suggestion.SuggestionsBuilder p_197009_2_)
      • hasPermission

        boolean hasPermission​(int p_197034_1_)
      • filterResources

        static <T> void filterResources​(java.lang.Iterable<T> p_210512_0_,
                                        java.lang.String p_210512_1_,
                                        java.util.function.Function<T,​ResourceLocation> p_210512_2_,
                                        java.util.function.Consumer<T> p_210512_3_)
      • filterResources

        static <T> void filterResources​(java.lang.Iterable<T> p_210511_0_,
                                        java.lang.String p_210511_1_,
                                        java.lang.String p_210511_2_,
                                        java.util.function.Function<T,​ResourceLocation> p_210511_3_,
                                        java.util.function.Consumer<T> p_210511_4_)
      • suggestResource

        static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource​(java.lang.Iterable<ResourceLocation> p_197006_0_,
                                                                                                                   com.mojang.brigadier.suggestion.SuggestionsBuilder p_197006_1_,
                                                                                                                   java.lang.String p_197006_2_)
      • suggestResource

        static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource​(java.lang.Iterable<ResourceLocation> p_197014_0_,
                                                                                                                   com.mojang.brigadier.suggestion.SuggestionsBuilder p_197014_1_)
      • suggestResource

        static <T> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource​(java.lang.Iterable<T> p_210514_0_,
                                                                                                                       com.mojang.brigadier.suggestion.SuggestionsBuilder p_210514_1_,
                                                                                                                       java.util.function.Function<T,​ResourceLocation> p_210514_2_,
                                                                                                                       java.util.function.Function<T,​com.mojang.brigadier.Message> p_210514_3_)
      • suggestResource

        static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource​(java.util.stream.Stream<ResourceLocation> p_212476_0_,
                                                                                                                   com.mojang.brigadier.suggestion.SuggestionsBuilder p_212476_1_)
      • suggestResource

        static <T> java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestResource​(java.util.stream.Stream<T> p_201725_0_,
                                                                                                                       com.mojang.brigadier.suggestion.SuggestionsBuilder p_201725_1_,
                                                                                                                       java.util.function.Function<T,​ResourceLocation> p_201725_2_,
                                                                                                                       java.util.function.Function<T,​com.mojang.brigadier.Message> p_201725_3_)
      • suggestCoordinates

        static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggestCoordinates​(java.lang.String p_209000_0_,
                                                                                                                      java.util.Collection<ISuggestionProvider.Coordinates> p_209000_1_,
                                                                                                                      com.mojang.brigadier.suggestion.SuggestionsBuilder p_209000_2_,
                                                                                                                      java.util.function.Predicate<java.lang.String> p_209000_3_)
      • suggest2DCoordinates

        static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest2DCoordinates​(java.lang.String p_211269_0_,
                                                                                                                        java.util.Collection<ISuggestionProvider.Coordinates> p_211269_1_,
                                                                                                                        com.mojang.brigadier.suggestion.SuggestionsBuilder p_211269_2_,
                                                                                                                        java.util.function.Predicate<java.lang.String> p_211269_3_)
      • suggest

        static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest​(java.lang.Iterable<java.lang.String> p_197005_0_,
                                                                                                           com.mojang.brigadier.suggestion.SuggestionsBuilder p_197005_1_)
      • suggest

        static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest​(java.util.stream.Stream<java.lang.String> p_197013_0_,
                                                                                                           com.mojang.brigadier.suggestion.SuggestionsBuilder p_197013_1_)
      • suggest

        static java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> suggest​(java.lang.String[] p_197008_0_,
                                                                                                           com.mojang.brigadier.suggestion.SuggestionsBuilder p_197008_1_)
      • matchesSubStr

        static boolean matchesSubStr​(java.lang.String p_237256_0_,
                                     java.lang.String p_237256_1_)