Package net.minecraft.command.arguments
Class SuggestionProviders.Wrapper
- java.lang.Object
-
- net.minecraft.command.arguments.SuggestionProviders.Wrapper
-
- All Implemented Interfaces:
com.mojang.brigadier.suggestion.SuggestionProvider<ISuggestionProvider>
- Enclosing class:
- SuggestionProviders
public static class SuggestionProviders.Wrapper extends java.lang.Object implements com.mojang.brigadier.suggestion.SuggestionProvider<ISuggestionProvider>
-
-
Field Summary
Fields Modifier and Type Field Description private com.mojang.brigadier.suggestion.SuggestionProvider<ISuggestionProvider>
delegate
private ResourceLocation
name
-
Constructor Summary
Constructors Constructor Description Wrapper(ResourceLocation p_i47984_1_, com.mojang.brigadier.suggestion.SuggestionProvider<ISuggestionProvider> p_i47984_2_)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
getSuggestions(com.mojang.brigadier.context.CommandContext<ISuggestionProvider> p_getSuggestions_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_getSuggestions_2_)
-
-
-
Field Detail
-
delegate
private final com.mojang.brigadier.suggestion.SuggestionProvider<ISuggestionProvider> delegate
-
name
private final ResourceLocation name
-
-
Constructor Detail
-
Wrapper
public Wrapper(ResourceLocation p_i47984_1_, com.mojang.brigadier.suggestion.SuggestionProvider<ISuggestionProvider> p_i47984_2_)
-
-
Method Detail
-
getSuggestions
public java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> getSuggestions(com.mojang.brigadier.context.CommandContext<ISuggestionProvider> p_getSuggestions_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_getSuggestions_2_) throws com.mojang.brigadier.exceptions.CommandSyntaxException
- Specified by:
getSuggestions
in interfacecom.mojang.brigadier.suggestion.SuggestionProvider<ISuggestionProvider>
- Throws:
com.mojang.brigadier.exceptions.CommandSyntaxException
-
-