Package net.minecraft.client.multiplayer
Class ClientSuggestionProvider
java.lang.Object
net.minecraft.client.multiplayer.ClientSuggestionProvider
- All Implemented Interfaces:
SharedSuggestionProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.commands.SharedSuggestionProvider
SharedSuggestionProvider.ElementSuggestionType, SharedSuggestionProvider.TextCoordinates
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ClientPacketListener
private final Minecraft
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
private int
-
Constructor Summary
ConstructorDescriptionClientSuggestionProvider
(ClientPacketListener p_105165_, Minecraft p_105166_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
completeCustomSuggestions
(int p_105172_, com.mojang.brigadier.suggestion.Suggestions p_105173_) CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
customSuggestion
(com.mojang.brigadier.context.CommandContext<?> p_212423_) boolean
hasPermission
(int p_105178_) levels()
void
modifyCustomCompletions
(ClientboundCustomChatCompletionsPacket.Action p_240810_, List<String> p_240765_) private static String
prettyPrint
(double p_105168_) private static String
prettyPrint
(int p_105170_) CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
suggestRegistryElements
(ResourceKey<? extends Registry<?>> p_212429_, SharedSuggestionProvider.ElementSuggestionType p_212430_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_212431_, com.mojang.brigadier.context.CommandContext<?> p_212432_) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface net.minecraft.commands.SharedSuggestionProvider
suggestRegistryElements
-
Field Details
-
connection
-
minecraft
-
pendingSuggestionsId
private int pendingSuggestionsId -
pendingSuggestionsFuture
@Nullable private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> pendingSuggestionsFuture -
customCompletionSuggestions
-
-
Constructor Details
-
ClientSuggestionProvider
-
-
Method Details
-
getOnlinePlayerNames
- Specified by:
getOnlinePlayerNames
in interfaceSharedSuggestionProvider
-
getCustomTabSugggestions
- Specified by:
getCustomTabSugggestions
in interfaceSharedSuggestionProvider
-
getSelectedEntities
- Specified by:
getSelectedEntities
in interfaceSharedSuggestionProvider
-
getAllTeams
- Specified by:
getAllTeams
in interfaceSharedSuggestionProvider
-
getAvailableSounds
- Specified by:
getAvailableSounds
in interfaceSharedSuggestionProvider
-
getRecipeNames
- Specified by:
getRecipeNames
in interfaceSharedSuggestionProvider
-
hasPermission
public boolean hasPermission(int p_105178_) - Specified by:
hasPermission
in interfaceSharedSuggestionProvider
-
customSuggestion
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> customSuggestion(com.mojang.brigadier.context.CommandContext<?> p_212423_) - Specified by:
customSuggestion
in interfaceSharedSuggestionProvider
-
prettyPrint
-
prettyPrint
-
getRelevantCoordinates
- Specified by:
getRelevantCoordinates
in interfaceSharedSuggestionProvider
-
getAbsoluteCoordinates
- Specified by:
getAbsoluteCoordinates
in interfaceSharedSuggestionProvider
-
levels
- Specified by:
levels
in interfaceSharedSuggestionProvider
-
registryAccess
- Specified by:
registryAccess
in interfaceSharedSuggestionProvider
-
enabledFeatures
- Specified by:
enabledFeatures
in interfaceSharedSuggestionProvider
-
completeCustomSuggestions
public void completeCustomSuggestions(int p_105172_, com.mojang.brigadier.suggestion.Suggestions p_105173_) -
modifyCustomCompletions
public void modifyCustomCompletions(ClientboundCustomChatCompletionsPacket.Action p_240810_, List<String> p_240765_)
-