Package net.minecraft.client.multiplayer
Class ClientSuggestionProvider
java.lang.Object
net.minecraft.client.multiplayer.ClientSuggestionProvider
- All Implemented Interfaces:
ISuggestionProvider
-
Nested Class Summary
Nested classes/interfaces inherited from interface net.minecraft.command.ISuggestionProvider
ISuggestionProvider.Coordinates
-
Field Summary
Modifier and TypeFieldDescriptionprivate final ClientPlayNetHandler
private final Minecraft
private CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
private int
-
Constructor Summary
ConstructorDescriptionClientSuggestionProvider
(ClientPlayNetHandler p_i49558_1_, Minecraft p_i49558_2_) -
Method Summary
Modifier and TypeMethodDescriptionvoid
completeCustomSuggestions
(int p_197015_1_, com.mojang.brigadier.suggestion.Suggestions p_197015_2_) CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
customSuggestion
(com.mojang.brigadier.context.CommandContext<ISuggestionProvider> p_197009_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_197009_2_) boolean
hasPermission
(int p_197034_1_) levels()
private static String
prettyPrint
(double p_209001_0_) private static String
prettyPrint
(int p_209002_0_)
-
Field Details
-
connection
-
minecraft
-
pendingSuggestionsId
private int pendingSuggestionsId -
pendingSuggestionsFuture
-
-
Constructor Details
-
ClientSuggestionProvider
-
-
Method Details
-
getOnlinePlayerNames
- Specified by:
getOnlinePlayerNames
in interfaceISuggestionProvider
-
getSelectedEntities
- Specified by:
getSelectedEntities
in interfaceISuggestionProvider
-
getAllTeams
- Specified by:
getAllTeams
in interfaceISuggestionProvider
-
getAvailableSoundEvents
- Specified by:
getAvailableSoundEvents
in interfaceISuggestionProvider
-
getRecipeNames
- Specified by:
getRecipeNames
in interfaceISuggestionProvider
-
hasPermission
public boolean hasPermission(int p_197034_1_) - Specified by:
hasPermission
in interfaceISuggestionProvider
-
customSuggestion
public CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> customSuggestion(com.mojang.brigadier.context.CommandContext<ISuggestionProvider> p_197009_1_, com.mojang.brigadier.suggestion.SuggestionsBuilder p_197009_2_) - Specified by:
customSuggestion
in interfaceISuggestionProvider
-
prettyPrint
-
prettyPrint
-
getRelevantCoordinates
- Specified by:
getRelevantCoordinates
in interfaceISuggestionProvider
-
getAbsoluteCoordinates
- Specified by:
getAbsoluteCoordinates
in interfaceISuggestionProvider
-
levels
- Specified by:
levels
in interfaceISuggestionProvider
-
registryAccess
- Specified by:
registryAccess
in interfaceISuggestionProvider
-
completeCustomSuggestions
public void completeCustomSuggestions(int p_197015_1_, com.mojang.brigadier.suggestion.Suggestions p_197015_2_)
-