Package net.minecraft.client.multiplayer
Class ClientSuggestionProvider
- java.lang.Object
-
- net.minecraft.client.multiplayer.ClientSuggestionProvider
-
- All Implemented Interfaces:
ISuggestionProvider
public class ClientSuggestionProvider extends java.lang.Object implements ISuggestionProvider
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface net.minecraft.command.ISuggestionProvider
ISuggestionProvider.Coordinates
-
-
Field Summary
Fields Modifier and Type Field Description private ClientPlayNetHandler
connection
private Minecraft
minecraft
private java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions>
pendingSuggestionsFuture
private int
pendingSuggestionsId
-
Constructor Summary
Constructors Constructor Description ClientSuggestionProvider(ClientPlayNetHandler p_i49558_1_, Minecraft p_i49558_2_)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
completeCustomSuggestions(int p_197015_1_, com.mojang.brigadier.suggestion.Suggestions p_197015_2_)
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_)
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()
java.util.Collection<ISuggestionProvider.Coordinates>
getRelevantCoordinates()
java.util.Collection<java.lang.String>
getSelectedEntities()
boolean
hasPermission(int p_197034_1_)
java.util.Set<RegistryKey<World>>
levels()
private static java.lang.String
prettyPrint(double p_209001_0_)
private static java.lang.String
prettyPrint(int p_209002_0_)
DynamicRegistries
registryAccess()
-
-
-
Field Detail
-
connection
private final ClientPlayNetHandler connection
-
minecraft
private final Minecraft minecraft
-
pendingSuggestionsId
private int pendingSuggestionsId
-
pendingSuggestionsFuture
private java.util.concurrent.CompletableFuture<com.mojang.brigadier.suggestion.Suggestions> pendingSuggestionsFuture
-
-
Constructor Detail
-
ClientSuggestionProvider
public ClientSuggestionProvider(ClientPlayNetHandler p_i49558_1_, Minecraft p_i49558_2_)
-
-
Method Detail
-
getOnlinePlayerNames
public java.util.Collection<java.lang.String> getOnlinePlayerNames()
- Specified by:
getOnlinePlayerNames
in interfaceISuggestionProvider
-
getSelectedEntities
public java.util.Collection<java.lang.String> getSelectedEntities()
- Specified by:
getSelectedEntities
in interfaceISuggestionProvider
-
getAllTeams
public java.util.Collection<java.lang.String> getAllTeams()
- Specified by:
getAllTeams
in interfaceISuggestionProvider
-
getAvailableSoundEvents
public java.util.Collection<ResourceLocation> getAvailableSoundEvents()
- Specified by:
getAvailableSoundEvents
in interfaceISuggestionProvider
-
getRecipeNames
public java.util.stream.Stream<ResourceLocation> getRecipeNames()
- Specified by:
getRecipeNames
in interfaceISuggestionProvider
-
hasPermission
public boolean hasPermission(int p_197034_1_)
- Specified by:
hasPermission
in interfaceISuggestionProvider
-
customSuggestion
public 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_)
- Specified by:
customSuggestion
in interfaceISuggestionProvider
-
prettyPrint
private static java.lang.String prettyPrint(double p_209001_0_)
-
prettyPrint
private static java.lang.String prettyPrint(int p_209002_0_)
-
getRelevantCoordinates
public java.util.Collection<ISuggestionProvider.Coordinates> getRelevantCoordinates()
- Specified by:
getRelevantCoordinates
in interfaceISuggestionProvider
-
getAbsoluteCoordinates
public java.util.Collection<ISuggestionProvider.Coordinates> getAbsoluteCoordinates()
- Specified by:
getAbsoluteCoordinates
in interfaceISuggestionProvider
-
levels
public java.util.Set<RegistryKey<World>> levels()
- Specified by:
levels
in interfaceISuggestionProvider
-
registryAccess
public DynamicRegistries registryAccess()
- Specified by:
registryAccess
in interfaceISuggestionProvider
-
completeCustomSuggestions
public void completeCustomSuggestions(int p_197015_1_, com.mojang.brigadier.suggestion.Suggestions p_197015_2_)
-
-