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.TextCoordinates
-
Field Summary
Modifier and TypeFieldDescriptionprivate ClientPacketListener
private 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<SharedSuggestionProvider> p_105175_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_105176_)
boolean
hasPermission(int p_105178_)
levels()
private static String
prettyPrint(double p_105168_)
private static String
prettyPrint(int p_105170_)
-
Field Details
-
connection
-
minecraft
-
pendingSuggestionsId
private int pendingSuggestionsId -
pendingSuggestionsFuture
-
-
Constructor Details
-
ClientSuggestionProvider
-
-
Method Details
-
getOnlinePlayerNames
- Specified by:
getOnlinePlayerNames
in interfaceSharedSuggestionProvider
-
getSelectedEntities
- Specified by:
getSelectedEntities
in interfaceSharedSuggestionProvider
-
getAllTeams
- Specified by:
getAllTeams
in interfaceSharedSuggestionProvider
-
getAvailableSoundEvents
- Specified by:
getAvailableSoundEvents
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<SharedSuggestionProvider> p_105175_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_105176_)- 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
-
completeCustomSuggestions
public void completeCustomSuggestions(int p_105172_, com.mojang.brigadier.suggestion.Suggestions p_105173_)
-